add chill_menu to render easily menu, refs #179

This commit is contained in:
2014-10-12 20:38:26 +02:00
parent b9882530d7
commit 68df4008a8
12 changed files with 247 additions and 10 deletions

View File

@@ -4,8 +4,15 @@ parameters:
services:
chill.main.menu_composer:
class: CL\Chill\MainBundle\Routing\MenuComposer
#must be set in function to avoid circular reference with chill.main.twig.chill_menu
calls:
- [setRoute, ["@router"]]
chill.main.twig.chill_menu:
class: CL\Chill\MainBundle\Routing\MenuTwig
arguments:
- "@router"
# cl_chill_main.example:
# class: %cl_chill_main.example.class%
# arguments: [@service_id, "plain_value", %parameter%]
- "@chill.main.menu_composer"
calls:
- [setContainer, ["@service_container"]]
tags:
- { name: twig.extension }