mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-14 16:46:30 +03:00
Add New Sylius Recipes (#1723)
* Add sylius/invoicing-plugin:1.0 recipe * Add sylius/refund-plugin:2.0 recipe * Add sylius/paypal-plugin:2.0 recipe * Remove sylius/refund-plugin:0.4 recipe
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: "@SyliusInvoicingPlugin/config/config.yaml" }
|
||||
@@ -0,0 +1,9 @@
|
||||
sylius_invoicing_admin:
|
||||
resource: "@SyliusInvoicingPlugin/config/admin_routes.yaml"
|
||||
prefix: /admin
|
||||
|
||||
sylius_invoicing_shop:
|
||||
resource: "@SyliusInvoicingPlugin/config/shop_routes.yaml"
|
||||
prefix: /{_locale}
|
||||
requirements:
|
||||
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Sylius\\InvoicingPlugin\\SyliusInvoicingPlugin": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
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 }
|
||||
@@ -0,0 +1,12 @@
|
||||
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"
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"bundles": {
|
||||
"Sylius\\InvoicingPlugin\\SyliusInvoicingPlugin": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
imports:
|
||||
- { resource: "@SyliusRefundPlugin/Resources/config/app/config.yml" }
|
||||
@@ -1,2 +0,0 @@
|
||||
sylius_refund:
|
||||
resource: "@SyliusRefundPlugin/Resources/config/routing.yml"
|
||||
@@ -0,0 +1,2 @@
|
||||
imports:
|
||||
- { resource: "@SyliusRefundPlugin/config/config.yaml" }
|
||||
@@ -0,0 +1,9 @@
|
||||
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})?$
|
||||
Reference in New Issue
Block a user