Skip to content

Commit

Permalink
Adjust codebase and structure for Sylius 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NoResponseMate committed Nov 27, 2024
1 parent 08ff666 commit c422b5b
Show file tree
Hide file tree
Showing 68 changed files with 278 additions and 841 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2", "8.3"]
symfony: ["^5.4", "^6.4"]
php: ["8.2", "8.3"]
symfony: ["^6.4", "^7.1"]
node: ["20.x"]
mysql: ["8.0"]

Expand All @@ -32,7 +32,7 @@ jobs:

steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4

-
name: Setup PHP
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:

-
name: Upload Behat logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Behat logs
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
/var/
/node_modules/
/composer.lock

Expand Down
9 changes: 0 additions & 9 deletions CONFLICTS.md

This file was deleted.

8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ phpspec:
phpstan:
vendor/bin/phpstan analyse

psalm:
vendor/bin/psalm

behat-js:
behat:
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress

install:
Expand All @@ -24,9 +21,6 @@ frontend:
(cd tests/Application && yarn install --pure-lockfile)
(cd tests/Application && GULP_ENV=prod yarn build)

behat:
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress

init: install backend frontend

ci: init phpstan psalm phpunit phpspec behat
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To be able to set up a plugin's database, remember to configure you database cre
- Behat (non-JS scenarios)
```bash
vendor/bin/behat --strict --tags="~@javascript"
vendor/bin/behat --strict --tags="~@javascript&&~@mink:chromedriver"
```
- Behat (JS scenarios)
Expand All @@ -86,12 +86,6 @@ To be able to set up a plugin's database, remember to configure you database cre
```

- Static Analysis

- Psalm

```bash
vendor/bin/psalm
```

- PHPStan

Expand Down
122 changes: 0 additions & 122 deletions UPGRADE.md

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions assets/shop/entrypoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './js/greetings';
File renamed without changes.
2 changes: 2 additions & 0 deletions behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ default:
validate_certificate: false
panther:
panther:
options:
webServerDir: '%paths.base%/tests/Application/public'
manager_options:
connection_timeout_in_ms: 5000
request_timeout_in_ms: 120000
Expand Down
53 changes: 25 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,59 +8,56 @@
],
"license": "MIT",
"require": {
"php": "^8.1",
"sylius/sylius": "~1.13.0",
"symfony/webpack-encore-bundle": "^1.15"
"php": "^8.2",
"sylius/sylius": "~2.0.0"
},
"require-dev": {
"behat/behat": "^3.6.1",
"behat/mink-selenium2-driver": "^1.4",
"dbrekelmans/bdi": "^1.1",
"dmore/behat-chrome-extension": "^1.3",
"dmore/chrome-mink-driver": "^2.7",
"dmore/behat-chrome-extension": "^1.4",
"dmore/chrome-mink-driver": "^2.9",
"friends-of-behat/mink": "^1.8",
"friends-of-behat/mink-browserkit-driver": "^1.4",
"friends-of-behat/mink-debug-extension": "^2.0.0",
"friends-of-behat/mink-debug-extension": "^2.0",
"friends-of-behat/mink-extension": "^2.4",
"friends-of-behat/page-object-extension": "^0.3",
"friends-of-behat/suite-settings-extension": "^1.0",
"friends-of-behat/symfony-extension": "^2.1",
"friends-of-behat/variadic-extension": "^1.3",
"phpspec/phpspec": "^7.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1.8.1",
"phpstan/phpstan-doctrine": "1.3.69",
"phpstan/phpstan-strict-rules": "^1.3.0",
"phpstan/phpstan-webmozart-assert": "^1.2.0",
"phpunit/phpunit": "^10.5",
"lchrusciel/api-test-case": "^5.1",
"nyholm/psr7": "^1.8",
"phpspec/phpspec": "^7.0",
"phpstan/phpstan": "^1.6",
"phpstan/phpstan-doctrine": "1.3.37",
"phpstan/phpstan-webmozart-assert": "^1.1",
"phpunit/phpunit": "^9.5",
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
"robertfausk/behat-panther-extension": "^1.1",
"sylius-labs/coding-standard": "^4.2",
"sylius-labs/suite-tags-extension": "^0.2",
"symfony/browser-kit": "^5.4 || ^6.4",
"symfony/debug-bundle": "^5.4 || ^6.4",
"symfony/dotenv": "^5.4 || ^6.4",
"symfony/flex": "^2.4",
"symfony/intl": "^5.4 || ^6.4",
"symfony/web-profiler-bundle": "^5.4 || ^6.4"
},
"conflict": {
"symfony/framework-bundle": "6.2.8"
"sylius-labs/coding-standard": "^4.4",
"sylius-labs/suite-tags-extension": "~0.2",
"sylius/sylius-rector": "^1.0",
"symfony/browser-kit": "^6.4 || ^7.1",
"symfony/debug-bundle": "^6.4 || ^7.1",
"symfony/dotenv": "^6.4 || ^7.1",
"symfony/http-client": "^6.4 || ^7.1",
"symfony/intl": "^6.4 || ^7.1",
"symfony/web-profiler-bundle": "^6.4 || ^7.1",
"symfony/webpack-encore-bundle": "^2.2"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"php-http/discovery": false,
"phpstan/extension-installer": true,
"symfony/flex": true
}
},
"extra": {
"branch-alias": {
"dev-master": "1.13-dev"
"dev-master": "2.0-dev"
},
"symfony": {
"require": "^5.4 || ^6.4"
"require": "^6.4"
}
},
"autoload": {
Expand Down
File renamed without changes.
10 changes: 9 additions & 1 deletion config/services.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>

<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<container
xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
>
<imports>
<import resource="services/**" />
</imports>

<services>
<service id="Acme\SyliusExamplePlugin\Controller\GreetingController" autowire="true" autoconfigure="true" public="true" />
<!-- Put your services here -->
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c422b5b

Please sign in to comment.