Add Sylius shipping slot plugin (#1296)

This commit is contained in:
Maxime Huran
2022-02-19 12:11:27 +01:00
committed by GitHub
parent 8721819e39
commit 3a84b0138a
3 changed files with 28 additions and 0 deletions
@@ -0,0 +1,6 @@
imports:
- { resource: "@MonsieurBizSyliusShippingSlotPlugin/Resources/config/config.yaml" }
monsieurbiz_sylius_shipping_slot:
expiration:
slot: '30 minutes'
@@ -0,0 +1,9 @@
monsieurbiz_shipping_slot_admin:
resource: "@MonsieurBizSyliusShippingSlotPlugin/Resources/config/routing/admin.yaml"
prefix: /%sylius_admin.path_name%
monsieurbiz_shipping_slot_shop:
resource: "@MonsieurBizSyliusShippingSlotPlugin/Resources/config/routing/shop.yaml"
prefix: /{_locale}
requirements:
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
@@ -0,0 +1,13 @@
{
"bundles": {
"MonsieurBiz\\SyliusShippingSlotPlugin\\MonsieurBizSyliusShippingSlotPlugin": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"copy-from-package": {
"src/Resources/views/SyliusShopBundle/Checkout/SelectShipping/_choice.html.twig": "templates/bundles/SyliusShopBundle/Checkout/SelectShipping/_choice.html.twig"
}
}