Skip to content

marijn/DoctrineExtensionsSluggableBundle

Repository files navigation

A Symfony bundle that acts as a configuration layer for the sluggable extension of Guilherme Blanco.

Installation

  1. Download the Sluggable extension to vendor/doctrine-sluggable-extension.

  2. Add both the extension and the bundle to the autoloader:

    <?php
    // add the extension source to your autoload.php
    $loader->registerNamespaces(array('DoctrineExtensions\\Sluggable'               => __DIR__ . '/../vendor/doctrine-sluggable-functional-behavior/lib'
                                     ,'DoctrineExtensions\\Bundle\\SluggableBundle' => __DIR__ . '/../vendor/bundles/DoctrineExtensions/Bundle'
                                     ));
  3. Register your bundle in the kernel:

    <?php
    // add this to your
    public function registerBundles ()
    {
      return array(// all the framework bundles
                  ,new DoctrineExtensions\Bundle\SluggableBundle\DoctrineExtensionsSluggableBundle
                  );
    }

Documentation

Enabling the bundle should be sufficient for most default setups. If however you wish to configure the extension further you should refer to the full (configuration) documentation distributed with this bundle.

License

The bundle is released under the MIT license. For more information see the license file distibuted with this bundle.

About

A Symfony bundle for the sluggable behavior of @guilhermeblanco

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages