Skip to content

Commit

Permalink
refactor #333 [Maintenance] Dependency update (Rafikooo)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.11-dev branch.

Discussion
----------

Update of dependency configuration (both composer and workflow).

It resolves the warning message (while executing the `composer update` command):
`Symfony recipes are disabled: "symfony/flex" not found in the root composer.json`

Commits
-------

d62b536 [Maintenance] Dependency update
60be3b6 [GithubActions] Updated section Restrict Symfony version
  • Loading branch information
GSadee authored Jul 18, 2022
2 parents 69b6019 + 60be3b6 commit b8b2497
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
php: ["8.0", "8.1"]
symfony: ["5.4.*"]
sylius: ["^1.11.2"]
sylius: ["^1.11.6"]
node: ["14.x"]
mysql: ["8.0"]

Expand Down Expand Up @@ -95,7 +95,8 @@ jobs:
name: Restrict Symfony version
if: matrix.symfony != ''
run: |
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^2.2.2"
composer config extra.symfony.require "${{ matrix.symfony }}"
-
Expand Down
35 changes: 23 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"require": {
"php": "^8.0",
"sylius/sylius": "^1.11.2"
"sylius/sylius": "^1.11.6"
},
"require-dev": {
"behat/behat": "^3.6.1",
Expand All @@ -25,29 +25,35 @@
"friends-of-behat/symfony-extension": "^2.1",
"friends-of-behat/variadic-extension": "^1.3",
"friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev",
"phpspec/phpspec": "^7.0",
"phpspec/phpspec": "^7.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.99",
"phpstan/phpstan-doctrine": "0.12.33",
"phpstan/phpstan-strict-rules": "^0.12.0",
"phpstan/phpstan-webmozart-assert": "0.12.12",
"phpstan/phpstan": "^1.8.1",
"phpstan/phpstan-doctrine": "1.3.2",
"phpstan/phpstan-strict-rules": "^1.3.0",
"phpstan/phpstan-webmozart-assert": "^1.2.0",
"phpunit/phpunit": "^9.5",
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
"sensiolabs/security-checker": "^6.0",
"sylius-labs/coding-standard": "^4.0",
"sylius-labs/coding-standard": "^4.2",
"symfony/browser-kit": "^5.4",
"symfony/debug-bundle": "^5.4",
"symfony/dotenv": "^5.4",
"symfony/flex": "^2.2.2",
"symfony/intl": "^5.4",
"symfony/web-profiler-bundle": "^5.4",
"vimeo/psalm": "4.23.0",
"polishsymfonycommunity/symfony-mocker-container": "^1.0"
"vimeo/psalm": "4.23.0"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"phpstan/extension-installer": false,
"symfony/flex": true
}
},
"extra": {
"branch-alias": {
"dev-master": "1.11-dev"
"dev-master": "1.12-dev"
}
},
"autoload": {
Expand All @@ -70,6 +76,11 @@
],
"post-create-project-cmd": [
"php bin/create_node_symlink.php"
]
],
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"security-checker security:check": "script"
}
}
}

0 comments on commit b8b2497

Please sign in to comment.