From a025b8db99b7348816edce8d836afd4310198d9c Mon Sep 17 00:00:00 2001 From: Karol <33687392+Wojdylak@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:06:02 +0100 Subject: [PATCH] Add new recipe for `sylius/paypal-plugin:1.7` (#1746) * [Sylius][PayPal] Add sylius_shop_override_routing to sylius_shop routing configuration * [Sylius][PayPal] Add additional options to sylius_shop_override_paypal * [Sylius][PayPal] Add new line --- sylius/paypal-plugin/1.7/manifest.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sylius/paypal-plugin/1.7/manifest.json b/sylius/paypal-plugin/1.7/manifest.json index a991d882..64042336 100644 --- a/sylius/paypal-plugin/1.7/manifest.json +++ b/sylius/paypal-plugin/1.7/manifest.json @@ -4,5 +4,13 @@ }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/" - } + }, + "add-lines": [ + { + "file": "config/routes/sylius_shop.yaml", + "position": "bottom", + "warn_if_missing": true, + "content": "sylius_shop_override_paypal:\n resource: \"@SyliusPayPalPlugin/Resources/config/sylius_shop_override_routing.yaml\"\n prefix: /{_locale}\n requirements:\n _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$\n" + } + ] }