add entry "add a person" in section dynamically + right on exports

This commit is contained in:
2018-07-17 16:50:59 +02:00
parent 318d93c456
commit b2abce256d
6 changed files with 83 additions and 7 deletions

View File

@@ -18,12 +18,6 @@ chill_person_general_update:
chill_person_new:
path: /{_locale}/person/new
defaults: {_controller: ChillPersonBundle:Person:new }
options:
menus:
section:
order: 10
label: Add a person
icons: [plus]
chill_person_review:
path: /{_locale}/person/review

View File

@@ -0,0 +1,6 @@
services:
Chill\PersonBundle\Menu\SectionMenuBuilder:
arguments:
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
tags:
- { name: 'chill.menu_builder' }