loads routes automatically

move routes to config.yml, loaded by prepending configuration
refs #273
This commit is contained in:
2015-01-22 17:36:49 +01:00
parent 6c515342d7
commit e9be284c03
3 changed files with 10 additions and 58 deletions

View File

@@ -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'
)
)
));
}
}