Skip to content

Commit

Permalink
Drop support for "symfony/*:<4.4"
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Jul 23, 2020
1 parent a409011 commit 9d99769
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"matthiasnoback/symfony-config-test": "^4.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.0",
"propel/propel1": "^1.6",
"symfony/config": "^3.4 || ^4.3 || ^5.0",
"symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0",
"symfony/http-foundation": "^3.4 || ^4.3 || ^5.0",
"symfony/http-kernel": "^3.4 || ^4.3 || ^5.0",
"symfony/phpunit-bridge": "^4.3.8 || ^5.0",
"symfony/property-access": "^3.4 || ^4.3 || ^5.0",
"symfony/routing": "^3.4 || ^4.3 || ^5.0"
"symfony/config": "^4.4 || ^5.0",
"symfony/dependency-injection": "^4.4 || ^5.0",
"symfony/http-foundation": "^4.4 || ^5.0",
"symfony/http-kernel": "^4.4 || ^5.0",
"symfony/phpunit-bridge": "^5.1",
"symfony/property-access": "^4.4 || ^5.0",
"symfony/routing": "^4.4 || ^5.0"
},
"suggest": {
"propel/propel1": "To export propel collections",
Expand Down
10 changes: 2 additions & 8 deletions src/Bridge/Symfony/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,8 @@ public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('sonata_exporter');

// Keep compatibility with symfony/config < 4.2
if (!method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->root('sonata_exporter');
} else {
$rootNode = $treeBuilder->getRootNode();
}

$rootNode
$treeBuilder
->getRootNode()
->children()
->arrayNode('exporter')
->addDefaultsIfNotSet()
Expand Down

0 comments on commit 9d99769

Please sign in to comment.