Skip to content

Commit

Permalink
Add BC layer for configuration class (#37)
Browse files Browse the repository at this point in the history
* allow symfony messenger ^5.0

* allow symfony ^5.0

* ad dBC layer for configuration class

* remove behat from workflw
  • Loading branch information
wachterjohannes authored Apr 16, 2021
1 parent 7a3ec44 commit a4adfdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,3 @@ jobs:
-
name: Run PHPUnit
run: vendor/bin/phpunit --colors=always

-
name: Run Behat
run: vendor/bin/behat --colors -vvv --no-interaction || vendor/bin/behat --colors -vvv --no-interaction --rerun

-
name: Upload Behat logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: Behat logs
path: etc/build/
if-no-files-found: ignore
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"php": "^7.3",

"sylius/sylius": "^1.8",
"symfony/messenger": "^4.4",
"symfony/config": "^4.4",
"symfony/dependency-injection": "^4.4",
"symfony/http-kernel": "^4.4",
"symfony/serializer": "^4.4"
"symfony/messenger": "^4.4|^5.0",
"symfony/config": "^4.4|^5.0",
"symfony/dependency-injection": "^4.4|^5.0",
"symfony/http-kernel": "^4.4|^5.0",
"symfony/serializer": "^4.4|^5.0"
},
"require-dev": {
"behat/behat": "^3.6.1",
Expand All @@ -36,7 +36,7 @@
"phpunit/phpunit": "^9.5",
"sensiolabs/security-checker": "^6.0",
"sylius-labs/coding-standard": "^3.1",
"symfony/browser-kit": "^4.4",
"symfony/browser-kit": "^4.4|^5.0",
"symfony/debug-bundle": "^4.4|^5.0",
"symfony/dotenv": "^4.4|^5.0",
"symfony/intl": "^4.4|^5.0",
Expand Down
5 changes: 1 addition & 4 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ final class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('sulu_sylius_producer');

return $treeBuilder;
return new TreeBuilder('sulu_sylius_producer');
}
}

0 comments on commit a4adfdf

Please sign in to comment.