From 5ded40a0d05dd30afafd91b0e3ac32a77032f1a9 Mon Sep 17 00:00:00 2001 From: Tristan Marly Date: Mon, 17 Jul 2023 18:02:52 +0200 Subject: [PATCH 1/2] fix admin routes --- src/Resources/config/routes/admin.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resources/config/routes/admin.yaml b/src/Resources/config/routes/admin.yaml index 344d09e3..3cab5cce 100644 --- a/src/Resources/config/routes/admin.yaml +++ b/src/Resources/config/routes/admin.yaml @@ -65,7 +65,7 @@ setono_sylius_gift_card_admin_gift_card_create_for_channel: path: /gift-cards/create methods: [GET] defaults: - _controller: sylius.controller.channel:indexAction + _controller: sylius.controller.channel::indexAction _sylius: repository: method: findAll @@ -76,7 +76,7 @@ setono_sylius_gift_card_admin_gift_card_create: path: /gift-cards/create/{channelCode} methods: [GET, POST] defaults: - _controller: setono_sylius_gift_card.controller.gift_card:createAction + _controller: setono_sylius_gift_card.controller.gift_card::createAction _sylius: factory: method: createForChannel @@ -99,7 +99,7 @@ setono_sylius_gift_card_admin_gift_card_orders_index: path: /gift-cards/{id}/orders methods: [GET, POST] defaults: - _controller: sylius.controller.order:indexAction + _controller: sylius.controller.order::indexAction _sylius: vars: route: From a75032773728b64a2730aa1790e60a7bf1378db7 Mon Sep 17 00:00:00 2001 From: Tristan Marly Date: Tue, 18 Jul 2023 08:52:30 +0200 Subject: [PATCH 2/2] fix ajax admin routes --- src/Resources/config/routes/admin_ajax.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/config/routes/admin_ajax.yaml b/src/Resources/config/routes/admin_ajax.yaml index 60341cca..d7c2130c 100644 --- a/src/Resources/config/routes/admin_ajax.yaml +++ b/src/Resources/config/routes/admin_ajax.yaml @@ -2,7 +2,7 @@ setono_sylius_gift_card_admin_ajax_customer_by_email_phrase: path: /customer/search methods: [GET] defaults: - _controller: sylius.controller.customer:indexAction + _controller: sylius.controller.customer::indexAction _format: json _sylius: serialization_groups: [Default] @@ -16,7 +16,7 @@ setono_sylius_gift_card_admin_ajax_customer_by_email: path: /customer/email methods: [GET] defaults: - _controller: sylius.controller.customer:indexAction + _controller: sylius.controller.customer::indexAction _format: json _sylius: serialization_groups: [Default]