add service_container to menuComposer instead of router to avoid circular references

This commit is contained in:
2014-10-12 21:00:16 +02:00
parent 9f31c3017d
commit 78a522d48f
2 changed files with 16 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ services:
class: CL\Chill\MainBundle\Routing\MenuComposer
#must be set in function to avoid circular reference with chill.main.twig.chill_menu
calls:
- [setRoute, ["@router"]]
- [setContainer, ["@service_container"]]
chill.main.twig.chill_menu:
class: CL\Chill\MainBundle\Routing\MenuTwig