Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Budget
Commits
e46463d1
Commit
e46463d1
authored
May 07, 2019
by
Julien Fastré
Browse files
add routes loading
parent
d2cf25a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
DependencyInjection/ChillAMLIBudgetExtension.php
View file @
e46463d1
...
...
@@ -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'
)
)
));
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment