A Symfony bundle that acts as a configuration layer for the sluggable extension of Guilherme Blanco.
-
Download the Sluggable extension to
vendor/doctrine-sluggable-extension
. -
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' ));
-
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 ); }
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.
The bundle is released under the MIT license. For more information see the license file distibuted with this bundle.