Skip to content

Commit 932968e

Browse files
authored
Merge pull request #173 from christopherhero/update_sylius1.10
update sylius 1.10
2 parents 02ba084 + 99ed524 commit 932968e

File tree

21 files changed

+366
-36
lines changed

21 files changed

+366
-36
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,21 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
php: [7.4, 7.3]
25-
symfony: [^4.4, ^5.2]
26-
sylius: [~1.9.0]
27-
node: [10.x]
28-
mysql: [5.7]
24+
php: ["8.0", "7.4"]
25+
symfony: ["^4.4", "^5.2"]
26+
sylius: ["~1.9.0", "~1.10.0"]
27+
node: ["10.x"]
28+
mysql: ["8.0"]
2929

3030
exclude:
31-
-
32-
sylius: ~1.8.0
33-
symfony: ^5.2
31+
- sylius: ~1.9.0
32+
php: 8.0
33+
34+
- sylius: ~1.10.0
35+
symfony: ^4.4
36+
# friendsofsymfony/elastica-bundle - package is locking php 7.x
37+
- sylius: ~1.10.0
38+
php: 8.0
3439

3540
env:
3641
APP_ENV: test
@@ -124,7 +129,7 @@ jobs:
124129

125130
-
126131
name: Install PHP dependencies
127-
run: composer install --no-interaction
132+
run: composer install --no-interaction --no-scripts
128133

129134
-
130135
name: Get Yarn cache directory
@@ -172,14 +177,6 @@ jobs:
172177
name: Validate database schema
173178
run: (cd tests/Application && bin/console doctrine:schema:validate)
174179

175-
# -
176-
# name: Run PHPStan
177-
# run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/
178-
179-
# -
180-
# name: Run Psalm
181-
# run: vendor/bin/psalm
182-
183180
-
184181
name: Run PHPSpec
185182
run: vendor/bin/phpspec run --ansi -f progress --no-interaction

composer.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "BitBag Elasticsearch plugin for Sylius.",
55
"license": "MIT",
66
"require": {
7-
"php": "^7.3",
87
"ext-json": "*",
9-
"sylius/sylius": "^1.9.0",
8+
"php": "^7.3 || ^7.4",
9+
"sylius/sylius": "~1.8.0 || ~1.9.0 || ~1.10.0",
1010
"friendsofsymfony/elastica-bundle": "^5.0",
1111
"symfony/property-access": "^4.4 || ^5.2"
1212
},
@@ -17,13 +17,13 @@
1717
"dmore/chrome-mink-driver": "^2.7",
1818
"friends-of-behat/mink": "^1.8",
1919
"friends-of-behat/mink-browserkit-driver": "^1.4",
20+
"friends-of-behat/mink-debug-extension": "^2.0.0",
2021
"friends-of-behat/mink-extension": "^2.4",
2122
"friends-of-behat/page-object-extension": "^0.3",
2223
"friends-of-behat/suite-settings-extension": "^1.0",
2324
"friends-of-behat/symfony-extension": "^2.1",
2425
"friends-of-behat/variadic-extension": "^1.3",
2526
"friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev",
26-
"lakion/mink-debug-extension": "^2.0.0",
2727
"phpspec/phpspec": "^7.0",
2828
"phpstan/extension-installer": "^1.0",
2929
"phpstan/phpstan": "0.12.82",
@@ -32,21 +32,16 @@
3232
"phpstan/phpstan-webmozart-assert": "0.12.12",
3333
"phpunit/phpunit": "^9.5",
3434
"sensiolabs/security-checker": "^6.0",
35-
"sylius-labs/coding-standard": "^3.1",
35+
"sylius-labs/coding-standard": "^4.0",
3636
"symfony/browser-kit": "^4.4 || ^5.2",
3737
"symfony/debug-bundle": "^4.4 || ^5.2",
3838
"symfony/dotenv": "^4.4 || ^5.2",
3939
"symfony/intl": "^4.4 || ^5.2",
4040
"symfony/web-profiler-bundle": "^4.4 || ^5.2",
41-
"vimeo/psalm": "4.6.4"
41+
"vimeo/psalm": "4.7.1"
4242
},
4343
"conflict": {
44-
"api-platform/core": "^2.6",
45-
"symfony/symfony": "4.1.8",
46-
"symfony/browser-kit": "4.1.8",
47-
"symfony/dependency-injection": "4.1.8",
48-
"symfony/dom-crawler": "4.1.8",
49-
"symfony/routing": "4.1.8"
44+
"symfony/form": "4.4.11 || 4.4.12"
5045
},
5146
"autoload": {
5247
"psr-4": {

tests/Application/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ APP_SECRET=EDITME
1212
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
1313
# For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
1414
# Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls
15-
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db
15+
DATABASE_URL=mysql://root:[email protected]/sylius_elasticsearch_%kernel.environment%
1616
###< doctrine/doctrine-bundle ###
1717

1818
###> lexik/jwt-authentication-bundle ###

tests/Application/.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ APP_SECRET='ch4mb3r0f5ecr3ts'
22

33
KERNEL_CLASS='Tests\BitBag\SyliusElasticsearchPlugin\Application\Kernel'
44

5-
DATABASE_URL=mysql://root:12345@127.0.0.1/sylius_elasticsearch_%kernel.environment%
5+
DATABASE_URL=mysql://root:password@127.0.0.1/sylius_elasticsearch_%kernel.environment%

tests/Application/config/bundles.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true],
4646
Sylius\Bundle\AdminBundle\SyliusAdminBundle::class => ['all' => true],
4747
Sylius\Bundle\ShopBundle\SyliusShopBundle::class => ['all' => true],
48-
FOS\OAuthServerBundle\FOSOAuthServerBundle::class => ['all' => true],
49-
Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle::class => ['all' => true],
5048
FOS\ElasticaBundle\FOSElasticaBundle::class => ['all' => true],
5149
BitBag\SyliusElasticsearchPlugin\BitBagSyliusElasticsearchPlugin::class => ['all' => true],
5250
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true],

tests/Application/config/packages/_sylius.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ imports:
22
- { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" }
33

44
- { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
5-
- { resource: "@SyliusAdminApiBundle/Resources/config/app/config.yml" }
65

76
- { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }
87

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
api_platform:
2+
resource: .
3+
type: api_platform
4+
prefix: /api
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
_errors:
2-
resource: '@TwigBundle/Resources/config/routing/errors.xml'
3-
prefix: /_error
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

0 commit comments

Comments
 (0)