mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
add routes loading
This commit is contained in:
parent
d2cf25a333
commit
e46463d119
@ -40,6 +40,7 @@ class ChillAMLIBudgetExtension extends Extension implements PrependExtensionInte
|
|||||||
public function prepend(ContainerBuilder $container)
|
public function prepend(ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
$this->prependAuthorization($container);
|
$this->prependAuthorization($container);
|
||||||
|
$this->prependRoutes($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function storeConfig($position, array $config, ContainerBuilder $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'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user