Skip to content

Commit

Permalink
Update plugin code for Sylius 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Jun 29, 2023
1 parent 6f7a91b commit 00c1cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
8 changes: 4 additions & 4 deletions src/Resources/config/routing/shop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 00c1cef

Please sign in to comment.