Skip to content

Commit 0e7bc98

Browse files
authored
Merge pull request #53 from BitBagCommerce/OPSRC-526/Sylius_1.11_support
Add sylius 1.11 support
2 parents ae5e5e5 + 509c851 commit 0e7bc98

File tree

24 files changed

+442
-47
lines changed

24 files changed

+442
-47
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,22 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
php: [7.4, 7.3, 8.0]
24+
php: [8.0, 7.4]
2525
symfony: [^4.4, ^5.2]
26-
sylius: [~1.8.0, ~1.9.0, ~1.10.0]
27-
node: [10.x]
26+
sylius: [~1.9.0, ~1.10.0, ~1.11.0]
27+
node: [14.19]
2828
mysql: [5.7]
2929

3030
exclude:
3131
-
32-
php: 7.3
33-
mysql: 8.0
34-
-
35-
sylius: ~1.8.0
36-
symfony: ^5.2
37-
-
38-
sylius: ~1.8.0
3932
php: 8.0
40-
-
4133
sylius: ~1.9.0
42-
php: 8.0
4334
-
4435
sylius: ~1.10.0
45-
php: 7.3
36+
symfony: 4.4
37+
-
38+
sylius: ~1.11.0
39+
php: 7.4
4640

4741
env:
4842
APP_ENV: test

.scrutinizer.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"require": {
88
"php": "^7.3 || ^7.4 || ^8.0",
9-
"sylius/sylius": "^1.10",
9+
"sylius/sylius": "~1.9.0 || ~1.10.0 || ~1.11.0",
1010
"drewm/mailchimp-api": "^v2.5.4",
1111
"ext-json": "*",
1212
"vimeo/psalm": "^4.12",
@@ -39,7 +39,9 @@
3939
"symfony/debug-bundle": "^4.4 || ^5.2",
4040
"symfony/dotenv": "^4.4 || ^5.2",
4141
"symfony/intl": "^4.4 || ^5.2",
42-
"symfony/web-profiler-bundle": "^4.4 || ^5.2"
42+
"symfony/web-profiler-bundle": "^4.4 || ^5.2",
43+
"friendsofsymfony/oauth-server-bundle": "2.*@dev",
44+
"polishsymfonycommunity/symfony-mocker-container": "^1.0"
4345
},
4446
"prefer-stable": true,
4547
"conflict": {
@@ -53,5 +55,13 @@
5355
},
5456
"autoload-dev": {
5557
"classmap": ["tests/Application/Kernel.php"]
58+
},
59+
"config": {
60+
"allow-plugins": {
61+
"symfony/thanks": true,
62+
"composer/package-versions-deprecated": true,
63+
"dealerdirect/phpcodesniffer-composer-installer": true,
64+
"phpstan/extension-installer": true
65+
}
5666
}
5767
}

tests/Application/.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@ JWT_PASSPHRASE=acme_plugin_development
2727
# Delivery is disabled by default via "null://localhost"
2828
MAILER_URL=smtp://localhost
2929
###< symfony/swiftmailer-bundle ###
30+
31+
###> symfony/messenger ###
32+
# Choose one of the transports below
33+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
34+
# MESSENGER_TRANSPORT_DSN=doctrine://default
35+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
36+
MESSENGER_TRANSPORT_DSN=sync://
37+
###< symfony/messenger ###

tests/Application/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function configureRoutes(RouteCollectionBuilder $routes): void
6767

6868
protected function getContainerBaseClass(): string
6969
{
70-
if ($this->isTestEnvironment()) {
70+
if ($this->isTestEnvironment() && class_exists(MockerContainer::class)) {
7171
return MockerContainer::class;
7272
}
7373

tests/Application/config/api_platform/.gitkeep

Whitespace-only changes.

tests/Application/config/packages/security_checker.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
return [
4+
BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true],
5+
SyliusLabs\Polyfill\Symfony\Security\Bundle\SyliusLabsPolyfillSymfonySecurityBundle::class => ['all' => true],
6+
];
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
jms_serializer:
2+
visitors:
3+
json_serialization:
4+
options:
5+
- JSON_PRETTY_PRINT
6+
- JSON_UNESCAPED_SLASHES
7+
- JSON_PRESERVE_ZERO_FRACTION
8+
json_deserialization:
9+
options:
10+
- JSON_PRETTY_PRINT
11+
- JSON_UNESCAPED_SLASHES
12+
- JSON_PRESERVE_ZERO_FRACTION
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jms_serializer:
2+
visitors:
3+
xml_serialization:
4+
format_output: '%kernel.debug%'

0 commit comments

Comments
 (0)