Commit e46463d1 authored by Julien Fastré's avatar Julien Fastré
Browse files

add routes loading

parent d2cf25a3
......@@ -40,6 +40,7 @@ class ChillAMLIBudgetExtension extends Extension implements PrependExtensionInte
public function prepend(ContainerBuilder $container)
{
$this->prependAuthorization($container);
$this->prependRoutes($container);
}
protected function storeConfig($position, array $config, ContainerBuilder $container)
......@@ -58,4 +59,19 @@ class ChillAMLIBudgetExtension extends Extension implements PrependExtensionInte
)
));
}
/* (non-PHPdoc)
* @see \Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend()
*/
public function prependRoutes(ContainerBuilder $container)
{
//add routes for custom bundle
$container->prependExtensionConfig('chill_main', array(
'routing' => array(
'resources' => array(
'@ChillAMLIBudgetBundle/Resources/config/routing.yml'
)
)
));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment