From 00c1cef2f28d638bdaa94f67af69c10d4ecf1363 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Thu, 29 Jun 2023 18:27:15 +0200 Subject: [PATCH] Update plugin code for Sylius 1.12 --- .../MonsieurBizSyliusShippingSlotExtension.php | 2 +- src/Resources/config/routing/shop.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php b/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php index 37e6d95..b741f36 100644 --- a/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php +++ b/src/DependencyInjection/MonsieurBizSyliusShippingSlotExtension.php @@ -28,7 +28,7 @@ public function load(array $config, ContainerBuilder $container): void $loader->load('services.yaml'); } - public function getAlias() + public function getAlias(): string { return str_replace('monsieur_biz', 'monsieurbiz', parent::getAlias()); } diff --git a/src/Resources/config/routing/shop.yaml b/src/Resources/config/routing/shop.yaml index ce1dd9a..3339e91 100644 --- a/src/Resources/config/routing/shop.yaml +++ b/src/Resources/config/routing/shop.yaml @@ -2,22 +2,22 @@ monsieurbiz_shippingslot_checkout_init: path: /monsieurbiz_shippingslots/init/{code} methods: [GET] defaults: - _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController:initAction + _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController::initAction monsieurbiz_shippingslot_checkout_listslots: path: /monsieurbiz_shippingslots/list/{code}/{fromDate}/{toDate} methods: [GET] defaults: - _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController:listAction + _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController::listAction monsieurbiz_shippingslot_checkout_saveslot: path: /monsieurbiz_shippingslots/save/ methods: [POST] defaults: - _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController:saveAction + _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController::saveAction monsieurbiz_shippingslot_checkout_resetslot: path: /monsieurbiz_shippingslots/reset/ methods: [POST] defaults: - _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController:resetAction + _controller: MonsieurBiz\SyliusShippingSlotPlugin\Controller\SlotController::resetAction