Configure routes using annotation

This commit is contained in:
2023-08-02 16:26:25 +02:00
parent 4b20db7a9c
commit 009a0326d9
55 changed files with 215 additions and 772 deletions

View File

@@ -1,27 +1,3 @@
app:
resource: "@ChillDocStoreBundle/Controller/"
type: annotation
## ADMIN SECTION
chill_docstore_admin:
path: /{_locale}/admin/document
controller: Chill\DocStoreBundle\Controller\AdminController::indexAction
options:
menus:
admin_section:
order: 2200
label: "Documents configuration menu"
icons: ['calendar']
chill_docstore_admin_redirect_to_admin_index:
path: /{_locale}/admin/document_redirect_to_main
controller: Chill\DocStoreBundle\Controller\AdminController::redirectToAdminIndexAction
options:
menus:
admin_docstore:
order: 0
label: Main admin menu
chill_docstore_category_admin:
path: /{_locale}/admin/document/category
controller: Chill\DocStoreBundle\Controller\DocumentCategoryController::indexAction