Skip to content

Commit

Permalink
[Maintenance] Add PayPalPlugin 2.0 to Sylius 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jan 28, 2025
1 parent 93a1e6c commit ccbe847
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
],
"require": {
"php": "^8.2",
"sylius/paypal-plugin": "^2.0",
"sylius/sylius": "~2.0.0",
"symfony/dotenv": "^6.4 || ^7.1",
"symfony/flex": "^2.4",
Expand Down
2 changes: 2 additions & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
Sylius\TwigExtra\Symfony\SyliusTwigExtraBundle::class => ['all' => true],
Symfony\UX\Icons\UXIconsBundle::class => ['all' => true],
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
Sylius\PayPalPlugin\SyliusPayPalPlugin::class => ['all' => true],
];
25 changes: 25 additions & 0 deletions config/packages/fos_rest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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 }

# param_fetcher_listener: true
# allowed_methods_listener: true
routing_loader: false
# view:
# view_response_listener: true
# exception:
# codes:
# App\Exception\MyException: 403
# messages:
# App\Exception\MyException: Forbidden area.
# format_listener:
# rules:
# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }
2 changes: 2 additions & 0 deletions config/packages/sylius_paypal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: "@SyliusPayPalPlugin/config/config.yaml" }
2 changes: 2 additions & 0 deletions config/routes/sylius_paypal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sylius_paypal:
resource: "@SyliusPayPalPlugin/config/routes.yaml"
25 changes: 25 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
"ref": "1e012e04f573524ca83795cd19df9ea690adb604"
}
},
"friendsofsymfony/rest-bundle": {
"version": "3.8",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "3.0",
"ref": "3762cc4e4f2d6faabeca5a151b41c8c791bd96e5"
},
"files": [
"config/packages/fos_rest.yaml"
]
},
"knplabs/knp-gaufrette-bundle": {
"version": "v0.9.0"
},
Expand Down Expand Up @@ -187,6 +199,19 @@
"sylius/mailer-bundle": {
"version": "v2.1.0"
},
"sylius/paypal-plugin": {
"version": "2.0",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "2.0",
"ref": "57902d9acd42347cbd964c996e75df0ac9028c9b"
},
"files": [
"config/packages/sylius_paypal.yaml",
"config/routes/sylius_paypal.yaml"
]
},
"sylius/resource-bundle": {
"version": "1.12",
"recipe": {
Expand Down

0 comments on commit ccbe847

Please sign in to comment.