mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
add chill_menu to render easily menu, refs #179
This commit is contained in:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user