Skip to content

Commit

Permalink
Merge pull request #32 from stof/drop_eol
Browse files Browse the repository at this point in the history
Drop support for unmaintained Symfony versions
  • Loading branch information
stof committed Aug 18, 2022
2 parents 18fe82d + c20a34f commit a38deca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
name_suffix: ' (lowest deps)'
composer_flags: '--prefer-lowest'
# Test against Symfony LTS versions
- php: '7.2'
name_suffix: ' (Symfony 3)'
composer_flags: ''
symfony_version: '3.4.*'
- php: '8.1'
name_suffix: ' (Symfony 4)'
composer_flags: ''
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"require": {
"php": ">=7.2",
"keen-io/keen-io": "~2.5",
"symfony/config": "^3.4.26 || ^4.3 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^3.4.26 || ^4.3 || ^5.0 || ^6.0",
"symfony/http-kernel": "^3.4.26 || ^4.3 || ^5.0 || ^6.0"
"symfony/config": "^4.4 || ^5.4 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
"symfony/http-kernel": "^4.4.13 || ^5.4 || ^6.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.0",
"symfony/yaml": "^3.4.26 || ^4.3 || ^5.4 || ^6.0",
"symfony/yaml": "^4.4 || ^5.4 || ^6.0",
"phpunit/phpunit": "^8.5.2 || ^9.0.1"
},
"autoload": {
Expand Down
7 changes: 1 addition & 6 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('keen_io');

if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for Symfony < 4.2
$rootNode = $treeBuilder->root('keen_io');
}
$rootNode = $treeBuilder->getRootNode();

$rootNode
->children()
Expand Down

0 comments on commit a38deca

Please sign in to comment.