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,42 +1,3 @@
chill_event_event:
resource: "@ChillEventBundle/config/routes/event.yaml"
prefix: /{_locale}/event/event
chill_event_participation:
resource: "@ChillEventBundle/config/routes/participation.yaml"
prefix: /{_locale}/event/participation
## ADMIN
chill_event_admin_index:
path: /{_locale}/admin/event
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_status:
resource: "@ChillEventBundle/config/routes/status.yaml"
prefix: /{_locale}/admin/event/status
chill_event_admin_role:
resource: "@ChillEventBundle/config/routes/role.yaml"
prefix: /{_locale}/admin/event/role
chill_event_admin_event_type:
resource: "@ChillEventBundle/config/routes/eventtype.yaml"
prefix: /{_locale}/admin/event/event_type
chill_event_controllers:
resource: "@ChillEventBundle/Controller"
type: annotation

View File

@@ -1,49 +0,0 @@
chill_event_list_most_recent:
path: most_recent
controller: Chill\EventBundle\Controller\EventController::mostRecentIndexAction
options:
menus:
section:
order: 90
label: Events
icons: [calendar]
chill_event__event_show:
path: /{event_id}/show
controller: Chill\EventBundle\Controller\EventController::showAction
chill_event__event_new_pickcenter:
path: /new/pick-center
controller: Chill\EventBundle\Controller\EventController::newPickCenterAction
options:
menus:
section:
order: 11
label: Add an event
icons: [plus, calendar-o]
chill_event__event_new:
path: /new
controller: Chill\EventBundle\Controller\EventController::newAction
methods: [ GET, POST ]
chill_event__event_edit:
path: /{event_id}/edit
controller: Chill\EventBundle\Controller\EventController::editAction
chill_event__event_update:
path: /{event_id}/update
controller: Chill\EventBundle\Controller\EventController::updateAction
methods: [POST, PUT]
chill_event__list_by_person:
path: /{person_id}/list
controller: Chill\EventBundle\Controller\EventController::listByPersonAction
methods: [ GET ]
chill_event__event_delete:
path: /{event_id}/delete
requirements:
event_id: \d+
controller: Chill\EventBundle\Controller\EventController::deleteAction
methods: [ GET, DELETE ]

View File

@@ -1,35 +0,0 @@
chill_eventtype_admin:
path: /
controller: Chill\EventBundle\Controller\EventTypeController::indexAction
options:
menus:
admin_events:
order: 90
label: "Event types"
chill_eventtype_admin_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\EventTypeController::showAction
chill_eventtype_admin_new:
path: /new
controller: Chill\EventBundle\Controller\EventTypeController::newAction
chill_eventtype_admin_create:
path: /create
controller: Chill\EventBundle\Controller\EventTypeController::createAction
methods: POST
chill_eventtype_admin_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\EventTypeController::editAction
chill_eventtype_admin_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\EventTypeController::updateAction
methods: [POST, PUT]
chill_eventtype_admin_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\EventTypeController::deleteAction
methods: [POST, DELETE]

View File

@@ -1,33 +0,0 @@
chill_event_participation_new:
path: /new
controller: Chill\EventBundle\Controller\ParticipationController::newAction
chill_event_participation_create:
path: /create
controller: Chill\EventBundle\Controller\ParticipationController::createAction
chill_event_participation_edit:
path: /{participation_id}/edit
controller: Chill\EventBundle\Controller\ParticipationController::editAction
chill_event_participation_update:
path: /{participation_id}/update
controller: Chill\EventBundle\Controller\ParticipationController::updateAction
methods: [POST]
chill_event_participation_edit_multiple:
path: /{event_id}/edit_multiple
controller: Chill\EventBundle\Controller\ParticipationController::editMultipleAction
chill_event_participation_update_multiple:
path: /{event_id}/update_multiple
controller: Chill\EventBundle\Controller\ParticipationController::updateMultipleAction
methods: [POST]
chill_event_participation_delete:
path: /{participation_id}/delete
requirements:
participation_id: \d+
controller: Chill\EventBundle\Controller\ParticipationController::deleteAction
methods: [ GET, DELETE ]

View File

@@ -1,35 +0,0 @@
chill_event_admin_role:
path: /
controller: Chill\EventBundle\Controller\RoleController::indexAction
options:
menus:
admin_events:
order: 110
label: "Event roles"
chill_event_admin_role_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\RoleController::showAction
chill_event_admin_role_new:
path: /new
controller: Chill\EventBundle\Controller\RoleController::newAction
chill_event_admin_role_create:
path: /create
controller: Chill\EventBundle\Controller\RoleController::createAction
methods: POST
chill_event_admin_role_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\RoleController::editAction
chill_event_admin_role_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\RoleController::updateAction
methods: [POST, PUT]
chill_event_admin_role_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\RoleController::deleteAction
methods: [POST, DELETE]

View File

@@ -1,35 +0,0 @@
chill_event_admin_status:
path: /
controller: Chill\EventBundle\Controller\StatusController::indexAction
options:
menus:
admin_events:
order: 100
label: "Event status"
chill_event_admin_status_show:
path: /{id}/show
controller: Chill\EventBundle\Controller\StatusController::showAction
chill_event_admin_status_new:
path: /new
controller: Chill\EventBundle\Controller\StatusController::newAction
chill_event_admin_status_create:
path: /create
controller: Chill\EventBundle\Controller\StatusController::createAction
methods: POST
chill_event_admin_status_edit:
path: /{id}/edit
controller: Chill\EventBundle\Controller\StatusController::editAction
chill_event_admin_status_update:
path: /{id}/update
controller: Chill\EventBundle\Controller\StatusController::updateAction
methods: [POST, PUT]
chill_event_admin_status_delete:
path: /{id}/delete
controller: Chill\EventBundle\Controller\StatusController::deleteAction
methods: [POST, DELETE]