loads route automatically

route must now be indicated in config.yml under chill_main.routing.resources.

Other bundle may add routes prepending configuration
This commit is contained in:
2015-01-22 17:05:21 +01:00
parent 7871a2e956
commit 8f457e0a63
5 changed files with 157 additions and 0 deletions

View File

@@ -2,6 +2,13 @@ parameters:
# cl_chill_main.example.class: Chill\MainBundle\Example
services:
chill.main.routes_loader:
class: Chill\MainBundle\Routing\Loader\ChillRoutesLoader
arguments:
- "%chill_main.routing.resources%"
tags:
- { name: routing.loader }
chill.main.menu_composer:
class: Chill\MainBundle\Routing\MenuComposer
#must be set in function to avoid circular reference with chill.main.twig.chill_menu