mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
loads routes automatically
move routes to config.yml, loaded by prepending configuration refs #273
This commit is contained in:
@@ -61,5 +61,14 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
||||
array('bundles' => array('ChillPersonBundle')));
|
||||
|
||||
$this-> declarePersonAsCustomizable($container);
|
||||
|
||||
//declare routes for person bundle
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillPersonBundle/Resources/config/routing.yml'
|
||||
)
|
||||
)
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user