Skip to content

Commit ccbe847

Browse files
committed
[Maintenance] Add PayPalPlugin 2.0 to Sylius 2.0
1 parent 93a1e6c commit ccbe847

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
],
2626
"require": {
2727
"php": "^8.2",
28+
"sylius/paypal-plugin": "^2.0",
2829
"sylius/sylius": "~2.0.0",
2930
"symfony/dotenv": "^6.4 || ^7.1",
3031
"symfony/flex": "^2.4",

config/bundles.php

+2
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@
6060
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
6161
Sylius\TwigExtra\Symfony\SyliusTwigExtraBundle::class => ['all' => true],
6262
Symfony\UX\Icons\UXIconsBundle::class => ['all' => true],
63+
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
64+
Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true],
6365
];

config/packages/fos_rest.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
fos_rest:
2+
exception: true
3+
view:
4+
formats:
5+
json: true
6+
xml: true
7+
empty_content: 204
8+
format_listener:
9+
rules:
10+
- { path: '^/api/.*', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
11+
- { path: '^/', stop: true }
12+
13+
# param_fetcher_listener: true
14+
# allowed_methods_listener: true
15+
routing_loader: false
16+
# view:
17+
# view_response_listener: true
18+
# exception:
19+
# codes:
20+
# App\Exception\MyException: 403
21+
# messages:
22+
# App\Exception\MyException: Forbidden area.
23+
# format_listener:
24+
# rules:
25+
# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }

config/packages/sylius_paypal.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: "@SyliusPayPalPlugin/config/config.yaml" }

config/routes/sylius_paypal.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sylius_paypal:
2+
resource: "@SyliusPayPalPlugin/config/routes.yaml"

symfony.lock

+25
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@
6161
"ref": "1e012e04f573524ca83795cd19df9ea690adb604"
6262
}
6363
},
64+
"friendsofsymfony/rest-bundle": {
65+
"version": "3.8",
66+
"recipe": {
67+
"repo": "github.com/symfony/recipes-contrib",
68+
"branch": "main",
69+
"version": "3.0",
70+
"ref": "3762cc4e4f2d6faabeca5a151b41c8c791bd96e5"
71+
},
72+
"files": [
73+
"config/packages/fos_rest.yaml"
74+
]
75+
},
6476
"knplabs/knp-gaufrette-bundle": {
6577
"version": "v0.9.0"
6678
},
@@ -187,6 +199,19 @@
187199
"sylius/mailer-bundle": {
188200
"version": "v2.1.0"
189201
},
202+
"sylius/paypal-plugin": {
203+
"version": "2.0",
204+
"recipe": {
205+
"repo": "github.com/symfony/recipes-contrib",
206+
"branch": "main",
207+
"version": "2.0",
208+
"ref": "57902d9acd42347cbd964c996e75df0ac9028c9b"
209+
},
210+
"files": [
211+
"config/packages/sylius_paypal.yaml",
212+
"config/routes/sylius_paypal.yaml"
213+
]
214+
},
190215
"sylius/resource-bundle": {
191216
"version": "1.12",
192217
"recipe": {

0 commit comments

Comments
 (0)