Skip to content

Commit

Permalink
Correct sylius/paypal 2.0gs recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafikooo committed Dec 11, 2024
1 parent aea3b41 commit 3ec0fe2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 27 deletions.
14 changes: 1 addition & 13 deletions sylius/paypal-plugin/2.0/config/packages/sylius_paypal.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
imports:
- { resource: "@SyliusInvoicingPlugin/config/config.yaml" }

fos_rest:
exception: true
view:
formats:
json: true
xml: true
empty_content: 204
format_listener:
rules:
- { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
- { path: '^/', stop: true }
- { resource: "@SyliusPayPalPlugin/config/config.yaml" }
14 changes: 2 additions & 12 deletions sylius/paypal-plugin/2.0/config/routes/sylius_paypal.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
sylius_paypal_admin:
resource: "@SyliusPayPalPlugin/config/admin_routes.yaml"
prefix: /admin

sylius_paypal_shop:
resource: "@SyliusPayPalPlugin/config/shop_routes.yaml"
prefix: /{_locale}
requirements:
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$

sylius_paypal_plugin_webhook_refund_order:
resource: "@SyliusPayPalPlugin/config/webhook_routes.yaml"
sylius_paypal:
resource: "@SyliusPayPalPlugin/config/routes.yaml"
13 changes: 11 additions & 2 deletions sylius/paypal-plugin/2.0/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"bundles": {
"Sylius\\InvoicingPlugin\\SyliusInvoicingPlugin": ["all"]
"Sylius\\PayPalPlugin\\SyliusPayPalPlugin": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
},
"add-lines": [
{
"file": "config/packages/fos_rest.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": "fos_rest:",
"content": " ###> sylius/paypal-plugin ###\n exception: true\n view:\n formats:\n json: true\n xml: true\n empty_content: 204\n format_listener:\n rules:\n - { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }\n - { path: '^/', stop: true }\n ###< sylius/paypal-plugin ###"
}
]
}

0 comments on commit 3ec0fe2

Please sign in to comment.