Skip to content

Commit 1d20db0

Browse files
authored
Merge pull request #74 from webgriffe/sylius-19-symfony-5
Make plugin compatible with Sylius 1.9 and Symfony 5
2 parents bf15306 + 983a8bb commit 1d20db0

File tree

6 files changed

+24
-14
lines changed

6 files changed

+24
-14
lines changed

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"php": "^7.3",
1313
"ext-json": "*",
1414
"ext-mbstring": "*",
15-
"doctrine/doctrine-bundle": "^1.12.12",
15+
"doctrine/doctrine-bundle": "^1.12.12 || ^2.0",
1616
"doctrine/event-manager": "^1.1",
1717
"doctrine/orm": "^2.7",
18-
"doctrine/persistence": "^1.3",
18+
"doctrine/persistence": "^1.3 || ^2.0",
1919
"drewm/mailchimp-api": "^2.5",
20-
"fzaninotto/faker": "^1.9",
20+
"fakerphp/faker": "^1.9",
2121
"knplabs/knp-menu": "^3.1",
2222
"psr/log": "^1.1",
2323
"setono/doctrine-orm-batcher": "^0.6.2",
@@ -42,11 +42,12 @@
4242
"webmozart/assert": "^1.1"
4343
},
4444
"require-dev": {
45+
"friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev",
4546
"phpspec/phpspec": "^6.3 || ^7.0",
4647
"phpunit/phpunit": "^9.4",
4748
"roave/security-advisories": "dev-master",
4849
"setono/code-quality-pack": "^1.1",
49-
"sylius/sylius": "~1.7.0",
50+
"sylius/sylius": "~1.9.0",
5051
"symfony/debug-bundle": "^5.1",
5152
"symfony/dotenv": "^5.1",
5253
"symfony/intl": "^4.4 || ^5.0",
@@ -73,7 +74,6 @@
7374
"tests/Application/Kernel.php"
7475
]
7576
},
76-
"prefer-stable": true,
7777
"scripts": {
7878
"all": [
7979
"@checks",

tests/Application/config/bundles.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
88
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
99
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
10-
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
1110
Sylius\Bundle\OrderBundle\SyliusOrderBundle::class => ['all' => true],
1211
Sylius\Bundle\MoneyBundle\SyliusMoneyBundle::class => ['all' => true],
1312
Sylius\Bundle\CurrencyBundle\SyliusCurrencyBundle::class => ['all' => true],
@@ -41,7 +40,7 @@
4140
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
4241
Payum\Bundle\PayumBundle\PayumBundle::class => ['all' => true],
4342
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
44-
WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle::class => ['all' => true],
43+
BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true],
4544
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
4645
Sylius\Bundle\FixturesBundle\SyliusFixturesBundle::class => ['all' => true],
4746
Sylius\Bundle\PayumBundle\SyliusPayumBundle::class => ['all' => true],
@@ -53,4 +52,5 @@
5352
Setono\DoctrineORMBatcherBundle\SetonoDoctrineORMBatcherBundle::class => ['all' => true],
5453
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
5554
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],
55+
SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true],
5656
];

tests/Application/config/packages/dev/jms_serializer.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
jms_serializer:
22
visitors:
3-
json:
3+
json_serialization:
4+
options:
5+
- JSON_PRETTY_PRINT
6+
- JSON_UNESCAPED_SLASHES
7+
- JSON_PRESERVE_ZERO_FRACTION
8+
json_deserialization:
49
options:
510
- JSON_PRETTY_PRINT
611
- JSON_UNESCAPED_SLASHES
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
doctrine_migrations:
2-
dir_name: "%kernel.project_dir%/src/Migrations"
3-
4-
# Namespace is arbitrary but should be different from App\Migrations as migrations classes should NOT be autoloaded
5-
namespace: DoctrineMigrations
2+
storage:
3+
table_storage:
4+
table_name: sylius_migrations
5+
migrations_paths:
6+
'App\Migrations': "%kernel.project_dir%/src/Migrations"
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
jms_serializer:
22
visitors:
3-
xml:
3+
xml_serialization:
44
format_output: '%kernel.debug%'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
jms_serializer:
22
visitors:
3-
json:
3+
json_serialization:
4+
options:
5+
- JSON_UNESCAPED_SLASHES
6+
- JSON_PRESERVE_ZERO_FRACTION
7+
json_deserialization:
48
options:
59
- JSON_UNESCAPED_SLASHES
610
- JSON_PRESERVE_ZERO_FRACTION

0 commit comments

Comments
 (0)