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,22 +1,6 @@
chill_activity_activity:
resource: "@ChillActivityBundle/config/routes/activity.yaml"
prefix: /
chill_activity_activityreason:
resource: "@ChillActivityBundle/config/routes/activityreason.yaml"
prefix: /
chill_activity_activityreasoncategory:
resource: "@ChillActivityBundle/config/routes/activityreasoncategory.yaml"
prefix: /
chill_activity_admin_index:
path: /{_locale}/admin/activity
controller: Chill\ActivityBundle\Controller\AdminController::indexActivityAction
chill_admin_activity_redirect_to_admin_index:
path: /{_locale}/admin/activity_redirect_to_main
controller: Chill\ActivityBundle\Controller\AdminController::redirectToAdminIndexAction
chill_activity_routes:
resource: '@ChillActivityBundle/Controller'
type: annotation
chill_activity_type_admin:
path: /{_locale}/admin/activity/type

View File

@@ -1,26 +0,0 @@
chill_activity_activity_list:
path: /{_locale}/activity/
controller: Chill\ActivityBundle\Controller\ActivityController::listAction
chill_activity_activity_show:
path: /{_locale}/activity/{id}/show
controller: Chill\ActivityBundle\Controller\ActivityController::showAction
chill_activity_activity_select_type:
path: /{_locale}/activity/select-type
controller: Chill\ActivityBundle\Controller\ActivityController::selectTypeAction
chill_activity_activity_new:
path: /{_locale}/activity/new
controller: Chill\ActivityBundle\Controller\ActivityController::newAction
methods: [POST, GET]
chill_activity_activity_edit:
path: /{_locale}/activity/{id}/edit
controller: Chill\ActivityBundle\Controller\ActivityController::editAction
methods: [GET, POST, PUT]
chill_activity_activity_delete:
path: /{_locale}/activity/{id}/delete
controller: Chill\ActivityBundle\Controller\ActivityController::deleteAction
methods: [GET, POST, DELETE]

View File

@@ -1,30 +0,0 @@
chill_activity_activityreason:
path: /{_locale}/admin/activityreason/
controller: Chill\ActivityBundle\Controller\ActivityReasonController::indexAction
chill_activity_activityreason_show:
path: /{_locale}/admin/activityreason/{id}/show
controller: Chill\ActivityBundle\Controller\ActivityReasonController::showAction
chill_activity_activityreason_new:
path: /{_locale}/admin/activityreason/new
controller: Chill\ActivityBundle\Controller\ActivityReasonController::newAction
chill_activity_activityreason_create:
path: /{_locale}/admin/activityreason/create
controller: Chill\ActivityBundle\Controller\ActivityReasonController::createAction
methods: POST
chill_activity_activityreason_edit:
path: /{_locale}/admin/activityreason/{id}/edit
controller: Chill\ActivityBundle\Controller\ActivityReasonController::editAction
chill_activity_activityreason_update:
path: /{_locale}/admin/activityreason/{id}/update
controller: Chill\ActivityBundle\Controller\ActivityReasonController::updateAction
methods: [POST, PUT]
chill_activity_activityreason_delete:
path: /{_locale}/admin/activityreason/{id}/delete
controller: Chill\ActivityBundle\Controller\ActivityReasonController::deleteAction
methods: [POST, DELETE]

View File

@@ -1,30 +0,0 @@
chill_activity_activityreasoncategory:
path: /{_locale}/admin/activityreasoncategory/
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::indexAction
chill_activity_activityreasoncategory_show:
path: /{_locale}/admin/activityreasoncategory/{id}/show
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::showAction
chill_activity_activityreasoncategory_new:
path: /{_locale}/admin/activityreasoncategory/new
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::newAction
chill_activity_activityreasoncategory_create:
path: /{_locale}/admin/activityreasoncategory/create
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::createAction
methods: POST
chill_activity_activityreasoncategory_edit:
path: /{_locale}/admin/activityreasoncategory/{id}/edit
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::editAction
chill_activity_activityreasoncategory_update:
path: /{_locale}/admin/activityreasoncategory/{id}/update
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::updateAction
methods: [POST, PUT]
chill_activity_activityreasoncategory_delete:
path: /{_locale}/admin/activityreasoncategory/{id}/delete
controller: Chill\ActivityBundle\Controller\ActivityReasonCategoryController::deleteAction
methods: [POST, DELETE]