mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
load routes from chill routes loaders
add routes to config by prepending configuration refs #273
This commit is contained in:
@@ -30,6 +30,8 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
|
||||
|
||||
/**
|
||||
* Declare the entity Report, as a customizable entity (can add custom fields)
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
*/
|
||||
public function declareReportAsCustomizable(ContainerBuilder $container)
|
||||
{
|
||||
@@ -46,9 +48,31 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* declare routes from report bundle
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
*/
|
||||
private function declareRouting(ContainerBuilder $container)
|
||||
{
|
||||
$container->prependExtensionConfig('chill_main', array(
|
||||
'routing' => array(
|
||||
'resources' => array(
|
||||
'@ChillReportBundle/Resources/config/routing.yml'
|
||||
)
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @param ContainerBuilder $container
|
||||
*/
|
||||
public function prepend(ContainerBuilder $container)
|
||||
{
|
||||
$this->declareReportAsCustomizable($container);
|
||||
$this->declareRouting($container);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user