mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 13:33:48 +00:00
handle menu with new menuBuilder api
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
chill_activity_activity_list:
|
||||
path: /{_locale}/person/{person_id}/activity/
|
||||
defaults: { _controller: "ChillActivityBundle:Activity:list" }
|
||||
options:
|
||||
menus:
|
||||
person:
|
||||
order: 201
|
||||
label: Activity list
|
||||
|
||||
chill_activity_activity_show:
|
||||
path: /{_locale}/person/{person_id}/activity/{id}/show
|
||||
@@ -14,11 +9,6 @@ chill_activity_activity_show:
|
||||
chill_activity_activity_new:
|
||||
path: /{_locale}/person/{person_id}/activity/new
|
||||
defaults: { _controller: "ChillActivityBundle:Activity:new" }
|
||||
options:
|
||||
menus:
|
||||
person:
|
||||
order: 200
|
||||
label: Add a new activity
|
||||
|
||||
chill_activity_activity_create:
|
||||
path: /{_locale}/person/{person_id}/activity/create
|
||||
|
8
Resources/config/services/menu.yml
Normal file
8
Resources/config/services/menu.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
Chill\ActivityBundle\Menu\MenuBuilder:
|
||||
arguments:
|
||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
||||
$tokenStorage: '@Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
Reference in New Issue
Block a user