[event] refactor admin for event bundle

This commit is contained in:
nobohan
2022-07-06 13:36:20 +02:00
parent 389f014d36
commit 36e35f2e8f
19 changed files with 118 additions and 89 deletions

View File

@@ -9,24 +9,24 @@ chill_event_participation:
## ADMIN
chill_event_admin:
chill_event_admin_index:
path: /{_locale}/admin/event
controller: Chill\EventBundle\Controller\AdminController::indexAction
options:
menus:
admin_section:
order: 2100
label: "Events"
icons: ['calendar']
controller: Chill\EventBundle\Controller\AdminController::indexAdminAction
# options:
# menus:
# admin_section:
# order: 2100
# label: "Events"
# icons: ['calendar']
chill_event_admin_redirect_to_admin_index:
path: /{_locale}/admin/event_redirect_to_main
controller: Chill\EventBundle\Controller\AdminController::redirectToAdminIndexAction
options:
menus:
admin_events:
order: 0
label: Main admin menu
# chill_event_admin_redirect_to_admin_index:
# path: /{_locale}/admin/event_redirect_to_main
# controller: Chill\EventBundle\Controller\AdminController::redirectToAdminIndexAction
# options:
# menus:
# admin_events:
# order: 0
# label: Main admin menu
chill_event_admin_status:
resource: "@ChillEventBundle/config/routes/status.yaml"
@@ -39,4 +39,4 @@ chill_event_admin_role:
chill_event_admin_event_type:
resource: "@ChillEventBundle/config/routes/eventtype.yaml"
prefix: /{_locale}/admin/event/event_type

View File

@@ -1,2 +1,11 @@
services:
Chill\EventBundle\Controller\:
autowire: true
resource: '../Controller'
tags: ['controller.service_arguments']
Chill\EventBundle\Menu\:
autowire: true
autoconfigure: true
resource: '../Menu/'
tags: ['chill.menu_builder']