From 13c69b83f707e5e8c79ff45fd2a4deb4f804f2c6 Mon Sep 17 00:00:00 2001 From: Tchama Date: Fri, 31 Jul 2020 18:22:43 +0200 Subject: [PATCH] fix 'controller' path syntax in routes yaml files --- config/routes.yaml | 20 ++++++++++---------- config/routes/center.yaml | 12 ++++++------ config/routes/exports.yaml | 8 ++++---- config/routes/password.yaml | 2 +- config/routes/password_recover.yaml | 8 ++++---- config/routes/permissionsgroup.yaml | 16 ++++++++-------- config/routes/postal-code.yaml | 2 +- config/routes/scope.yaml | 12 ++++++------ config/routes/user.yaml | 20 ++++++++++---------- 9 files changed, 50 insertions(+), 50 deletions(-) diff --git a/config/routes.yaml b/config/routes.yaml index 0244e448e..b363ee3e9 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -40,16 +40,15 @@ root: chill_main_homepage_without_locale: path: /homepage - defaults: { controller: ChillMain\DefaultController::indexWithoutLocale } + controller: Chill\MainBundle\Controller\DefaultController::indexWithoutLocaleAction chill_main_homepage: path: /{_locale}/homepage - defaults: { controller: ChillMain\DefaultController::index } - + controller: Chill\MainBundle\Controller\DefaultController::indexAction chill_main_admin_central: path: /{_locale}/admin - defaults: { controller: ChillMain\AdminController::index } + controller: Chill\MainBundle\Controller\AdminController::indexAction options: menus: admin_permissions: @@ -58,25 +57,26 @@ chill_main_admin_central: chill_main_admin_permissions: path: /{_locale}/admin/permissions - defaults: { controller: ChillMain\AdminController::indexPermissions } + controller: Chill\MainBundle\Controller\AdminController::indexPermissionsAction chill_main_search: path: /{_locale}/search.{_format} - defaults: { controller: ChillMain\SearchController::search, _format: 'html' } + controller: Chill\MainBundle\Controller\SearchController::searchAction + format: 'html' requirements: _format: html|json chill_main_advanced_search: path: /{_locale}/search/advanced/{name} - defaults: { controller: ChillMain\SearchController::advancedSearch } + controller: Chill\MainBundle\Controller\SearchController::advancedSearchAction chill_main_advanced_search_list: path: /{_locale}/search/advanced - defaults: { controller: ChillMain\SearchController::advancedSearchList } + controller: Chill\MainBundle\Controller\SearchController::advancedSearchListAction login: path: /login - defaults: { controller: ChillMain\LoginController::login } + controller: Chill\MainBundle\Controller\LoginController::loginAction login_check: path: /login_check @@ -86,4 +86,4 @@ logout: chill_main_test: path: /{_locale}/main/test - defaults: { controller: ChillMain\DefaultController::test } + controller: Chill\MainBundle\Controller\DefaultController::testAction diff --git a/config/routes/center.yaml b/config/routes/center.yaml index cb69c2bc0..69b635cad 100644 --- a/config/routes/center.yaml +++ b/config/routes/center.yaml @@ -1,6 +1,6 @@ admin_center: path: / - defaults: { controller: ChillMain\CenterController::index } + controller: Chill\MainBundle\Controller\CenterController::indexAction options: menus: admin_permissions: @@ -9,11 +9,11 @@ admin_center: admin_center_show: path: /{id}/show - defaults: { controller: ChillMain\CenterController::show } + controller: Chill\MainBundle\Controller\CenterController::showAction admin_center_new: path: /new - defaults: { controller: ChillMain\CenterController::new } + controller: Chill\MainBundle\Controller\CenterController::newAction options: menus: admin_permissions: @@ -22,14 +22,14 @@ admin_center_new: admin_center_create: path: /create - defaults: { controller: ChillMain\CenterController::create } + controller: Chill\MainBundle\Controller\CenterController::createAction methods: POST admin_center_edit: path: /{id}/edit - defaults: { controller: ChillMain\CenterController::edit } + controller: Chill\MainBundle\Controller\CenterController::editAction admin_center_update: path: /{id}/update - defaults: { controller: ChillMain\CenterController::update } + controller: Chill\MainBundle\Controller\CenterController::updateAction methods: [POST, PUT] diff --git a/config/routes/exports.yaml b/config/routes/exports.yaml index 88866b2d8..2c3d65f2d 100644 --- a/config/routes/exports.yaml +++ b/config/routes/exports.yaml @@ -1,17 +1,17 @@ chill_main_export_index: path: / - defaults: { controller: ChillMain\ExportController::index } + controller: Chill\MainBundle\Controller\ExportController::indexAction chill_main_export_new: path: /new/{alias} - defaults: { controller: ChillMain\ExportController::new } + controller: Chill\MainBundle\Controller\ExportController::newAction chill_main_export_generate: path: /generate/{alias} - defaults: { controller: ChillMain\ExportController::generate } + controller: Chill\MainBundle\Controller\ExportController::generateAction methods: [GET] chill_main_export_download: path: /download/{alias} - defaults: { controller: ChillMain\ExportController::downloadResult } + controller: Chill\MainBundle\Controller\ExportController::downloadResultAction methods: [ GET ] \ No newline at end of file diff --git a/config/routes/password.yaml b/config/routes/password.yaml index ddcfc84df..7a8f07e68 100644 --- a/config/routes/password.yaml +++ b/config/routes/password.yaml @@ -1,4 +1,4 @@ change_my_password: path: /edit - defaults: { controller: ChillMain\PasswordController::userPassword } + controller: Chill\MainBundle\Controller\PasswordController::userPasswordAction diff --git a/config/routes/password_recover.yaml b/config/routes/password_recover.yaml index 4d732cae6..e2ecfdc6d 100644 --- a/config/routes/password_recover.yaml +++ b/config/routes/password_recover.yaml @@ -1,15 +1,15 @@ password_recover: path: /recover - defaults: { controller: ChillMain\PasswordController::recover } + controller: Chill\MainBundle\Controller\PasswordController::recoverAction password_request_recover: path: /request-recover - defaults: { controller: ChillMain\PasswordController::requestRecover } + controller: Chill\MainBundle\Controller\PasswordController::requestRecoverAction password_request_recover_confirm: path: /request-confirm - defaults: { controller: ChillMain\PasswordController::requestRecoverConfirm } + controller: Chill\MainBundle\Controller\PasswordController::requestRecoverConfirmAction password_request_recover_changed: path: /request-changed - defaults: { controller: ChillMain\PasswordController::changeConfirmed } + controller: Chill\MainBundle\Controller\PasswordController::changeConfirmedAction diff --git a/config/routes/permissionsgroup.yaml b/config/routes/permissionsgroup.yaml index cdce7b9ba..42e3ea3c2 100644 --- a/config/routes/permissionsgroup.yaml +++ b/config/routes/permissionsgroup.yaml @@ -1,6 +1,6 @@ admin_permissionsgroup: path: / - defaults: { controller: ChillMain\PermissionsGroupController::index } + controller: Chill\MainBundle\Controller\PermissionsGroupController::indexAction options: menus: admin_permissions: @@ -9,11 +9,11 @@ admin_permissionsgroup: admin_permissionsgroup_show: path: /{id}/show - defaults: { controller: ChillMain\PermissionsGroupController::show } + controller: Chill\MainBundle\Controller\PermissionsGroupController::showAction admin_permissionsgroup_new: path: /new - defaults: { controller: ChillMain\PermissionsGroupController::new } + controller: Chill\MainBundle\Controller\PermissionsGroupController::newAction options: menus: admin_permissions: @@ -22,24 +22,24 @@ admin_permissionsgroup_new: admin_permissionsgroup_create: path: /create - defaults: { controller: ChillMain\PermissionsGroupController::create } + controller: Chill\MainBundle\Controller\PermissionsGroupController::createAction methods: POST admin_permissionsgroup_edit: path: /{id}/edit - defaults: { controller: ChillMain\PermissionsGroupController::edit } + controller: Chill\MainBundle\Controller\PermissionsGroupController::editAction admin_permissionsgroup_update: path: /{id}/update - defaults: { controller: ChillMain\PermissionsGroupController::update } + controller: Chill\MainBundle\Controller\PermissionsGroupController::updateAction methods: [POST, PUT] admin_permissionsgroup_delete_role_scope: path: /{pgid}/delete_link_role_scope/{rsid} - defaults: { controller: ChillMain\PermissionsGroupController::deleteLinkRoleScope } + controller: Chill\MainBundle\Controller\PermissionsGroupController::deleteLinkRoleScopeAction methods: [DELETE] admin_permissionsgroup_add_role_scope: path: /{id}/add_link_role_scope - defaults: { controller: ChillMain\PermissionsGroupController::addLinkRoleScope } + controller: Chill\MainBundle\Controller\PermissionsGroupController::addLinkRoleScopeAction methods: [PUT] diff --git a/config/routes/postal-code.yaml b/config/routes/postal-code.yaml index b45817b12..19d8fb37d 100644 --- a/config/routes/postal-code.yaml +++ b/config/routes/postal-code.yaml @@ -1,4 +1,4 @@ chill_main_postal_code_search: path: /search - defaults: { controller: ChillMain\PostalCodeController::search } + controller: Chill\MainBundle\Controller\PostalCodeController::searchAction \ No newline at end of file diff --git a/config/routes/scope.yaml b/config/routes/scope.yaml index b600b238a..cb27ec93b 100644 --- a/config/routes/scope.yaml +++ b/config/routes/scope.yaml @@ -1,6 +1,6 @@ admin_scope: path: / - defaults: { controller: ChillMain\ScopeController::index } + controller: Chill\MainBundle\Controller\ScopeController::indexAction options: menus: admin_permissions: @@ -9,11 +9,11 @@ admin_scope: admin_scope_show: path: /{id}/show - defaults: { controller: ChillMain\ScopeController::show } + controller: Chill\MainBundle\Controller\ScopeController::showAction admin_scope_new: path: /new - defaults: { controller: ChillMain\ScopeController::new } + controller: Chill\MainBundle\Controller\ScopeController::newAction options: menus: admin_permissions: @@ -22,14 +22,14 @@ admin_scope_new: admin_scope_create: path: /create - defaults: { controller: ChillMain\ScopeController::create } + controller: Chill\MainBundle\Controller\ScopeController::createAction methods: POST admin_scope_edit: path: /{id}/edit - defaults: { controller: ChillMain\ScopeController::edit } + controller: Chill\MainBundle\Controller\ScopeController::editAction admin_scope_update: path: /{id}/update - defaults: { controller: ChillMain\ScopeController::update } + controller: Chill\MainBundle\Controller\ScopeController::updateAction methods: [POST, PUT] diff --git a/config/routes/user.yaml b/config/routes/user.yaml index 6bb7489d6..545496138 100644 --- a/config/routes/user.yaml +++ b/config/routes/user.yaml @@ -1,6 +1,6 @@ admin_user: path: / - defaults: { controller: ChillMain\UserController::index } + controller: Chill\MainBundle\Controller\UserController::indexAction options: menus: admin_permissions: @@ -9,11 +9,11 @@ admin_user: admin_user_show: path: /{id}/show - defaults: { controller: ChillMain\UserController::show } + controller: Chill\MainBundle\Controller\UserController::showAction admin_user_new: path: /new - defaults: { controller: ChillMain\UserController::new } + controller: Chill\MainBundle\Controller\UserController::newAction options: menus: admin_permissions: @@ -22,33 +22,33 @@ admin_user_new: admin_user_create: path: /create - defaults: { controller: ChillMain\UserController::create } + controller: Chill\MainBundle\Controller\UserController::createAction methods: POST admin_user_edit: path: /{id}/edit - defaults: { controller: ChillMain\UserController::edit } + controller: Chill\MainBundle\Controller\UserController::editAction admin_user_edit_password: path: /{id}/edit_password - defaults: { controller: ChillMain\UserController::editPassword } + controller: Chill\MainBundle\Controller\UserController::editPasswordAction admin_user_update: path: /{id}/update - defaults: { controller: ChillMain\UserController::update } + controller: Chill\MainBundle\Controller\UserController::updateAction methods: [POST, PUT] admin_user_update_password: path: /{id}/update_password - defaults: { controller: ChillMain\UserController::updatePassword } + controller: Chill\MainBundle\Controller\UserController::updatePasswordAction methods: [POST, PUT] admin_user_delete_group_center: path: /{uid}/delete_link_groupcenter/{gcid} - defaults: { controller: ChillMain\UserController::deleteLinkGroupCenter } + controller: Chill\MainBundle\Controller\UserController::deleteLinkGroupCenterAction methods: [DELETE] admin_user_add_group_center: path: /{uid}/add_link_groupcenter - defaults: { controller: ChillMain\UserController::addLinkGroupCenter } + controller: Chill\MainBundle\Controller\UserController::addLinkGroupCenterAction methods: [POST]