From 05bc984e684ed45882c423da96b7ffa5a2b86e1d Mon Sep 17 00:00:00 2001 From: Chihiro Adachi <8196725+chihiro-adachi@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:03:35 +0900 Subject: [PATCH] =?UTF-8?q?method=E3=82=92=E6=8C=87=E5=AE=9A=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/Admin/Product/ClassCategoryController.php | 2 +- src/Eccube/Controller/Admin/Product/ClassNameController.php | 2 +- src/Eccube/Controller/Admin/Product/CsvImportController.php | 4 ++-- src/Eccube/Controller/Block/AutoNewItemController.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Eccube/Controller/Admin/Product/ClassCategoryController.php b/src/Eccube/Controller/Admin/Product/ClassCategoryController.php index fbfc97e682d..2d58782c060 100644 --- a/src/Eccube/Controller/Admin/Product/ClassCategoryController.php +++ b/src/Eccube/Controller/Admin/Product/ClassCategoryController.php @@ -280,7 +280,7 @@ public function moveSortNo(Request $request) /** * 規格分類CSVの出力. * - * @Route("/%eccube_admin_route%/product/class_category/export/{class_name_id}", name="admin_product_class_category_export") + * @Route("/%eccube_admin_route%/product/class_category/export/{class_name_id}", name="admin_product_class_category_export", methods={"GET"}) * * @param Request $request * diff --git a/src/Eccube/Controller/Admin/Product/ClassNameController.php b/src/Eccube/Controller/Admin/Product/ClassNameController.php index e2e41ced9d2..d0ec31fa0a9 100644 --- a/src/Eccube/Controller/Admin/Product/ClassNameController.php +++ b/src/Eccube/Controller/Admin/Product/ClassNameController.php @@ -200,7 +200,7 @@ public function moveSortNo(Request $request) /** * 規格CSVの出力. * - * @Route("/%eccube_admin_route%/product/class_name/export", name="admin_product_class_name_export") + * @Route("/%eccube_admin_route%/product/class_name/export", name="admin_product_class_name_export", methods={"GET"}) * * @param Request $request * diff --git a/src/Eccube/Controller/Admin/Product/CsvImportController.php b/src/Eccube/Controller/Admin/Product/CsvImportController.php index c5bbd06caf6..4a763981d52 100644 --- a/src/Eccube/Controller/Admin/Product/CsvImportController.php +++ b/src/Eccube/Controller/Admin/Product/CsvImportController.php @@ -857,7 +857,7 @@ public function csvCategory(Request $request, CacheUtil $cacheUtil) /** * 規格登録CSVアップロード * - * @Route("/%eccube_admin_route%/product/class_name_csv_upload", name="admin_product_class_name_csv_import") + * @Route("/%eccube_admin_route%/product/class_name_csv_upload", name="admin_product_class_name_csv_import", methods={"GET", "POST"}) * @Template("@admin/Product/csv_class_name.twig") */ public function csvClassName(Request $request, CacheUtil $cacheUtil) @@ -977,7 +977,7 @@ public function csvClassName(Request $request, CacheUtil $cacheUtil) /** * 規格分類CSV登録CSVアップロード * - * @Route("/%eccube_admin_route%/product/class_category_csv_upload", name="admin_product_class_category_csv_import") + * @Route("/%eccube_admin_route%/product/class_category_csv_upload", name="admin_product_class_category_csv_import", methods={"GET", "POST"}) * @Template("@admin/Product/csv_class_category.twig") */ public function csvClassCategory(Request $request, CacheUtil $cacheUtil) diff --git a/src/Eccube/Controller/Block/AutoNewItemController.php b/src/Eccube/Controller/Block/AutoNewItemController.php index 061da5a04cc..8b3baed0f01 100644 --- a/src/Eccube/Controller/Block/AutoNewItemController.php +++ b/src/Eccube/Controller/Block/AutoNewItemController.php @@ -41,7 +41,7 @@ public function __construct( } /** - * @Route("/block/auto_new_item", name="block_auto_new_item") + * @Route("/block/auto_new_item", name="block_auto_new_item", methods={"GET"}) * @Template("Block/auto_new_item.twig") * * @param Request $request