From 0266abb914c4c162d7652f25bd73f6aa69458912 Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Wed, 11 Dec 2024 03:59:19 +0100 Subject: [PATCH] Correct sylius/refund-plugin:2.0 recipe --- .../2.0/config/routes/sylius_refund.yaml | 11 ++--------- sylius/refund-plugin/2.0/manifest.json | 10 +++++++++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/sylius/refund-plugin/2.0/config/routes/sylius_refund.yaml b/sylius/refund-plugin/2.0/config/routes/sylius_refund.yaml index fc790e935..e7ea95e41 100644 --- a/sylius/refund-plugin/2.0/config/routes/sylius_refund.yaml +++ b/sylius/refund-plugin/2.0/config/routes/sylius_refund.yaml @@ -1,9 +1,2 @@ -sylius_refund_admin: - resource: "@SyliusRefundPlugin/config/admin_routes.yaml" - prefix: '/%sylius_admin.path_name%' - -sylius_refund_shop: - resource: "@SyliusRefundPlugin/config/shop_routes.yaml" - prefix: /{_locale} - requirements: - _locale: ^[a-z]{2}(?:_[A-Z]{2})?$ +sylius_refund: + resource: "@SyliusRefundPlugin/config/routes.yaml" diff --git a/sylius/refund-plugin/2.0/manifest.json b/sylius/refund-plugin/2.0/manifest.json index 87516c747..74d5366ff 100644 --- a/sylius/refund-plugin/2.0/manifest.json +++ b/sylius/refund-plugin/2.0/manifest.json @@ -4,5 +4,13 @@ }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" - } + }, + "add-lines": [ + { + "file": "assets/admin/entrypoint.js", + "content": "import '../../vendor/sylius/refund-plugin/assets/entrypoint';", + "position": "bottom", + "warn_if_missing": true + } + ] }