Skip to content

Commit

Permalink
Merge 03fa03e into 2150175
Browse files Browse the repository at this point in the history
  • Loading branch information
frostieDE authored Jan 5, 2020
2 parents 2150175 + 03fa03e commit f370850
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"require": {
"php": ">=5.6",
"symfony/framework-bundle": "~2.7|~3.0|~4.0",
"symfony/security-bundle": "~2.7|~3.0|~4.0",
"symfony/framework-bundle": "~2.7|~3.0|~4.0|~5.0",
"symfony/security-bundle": "~2.7|~3.0|~4.0|~5.0",
"lightsaml/symfony-bridge": "~1.3"
},
"require-dev": {
Expand Down
10 changes: 8 additions & 2 deletions src/LightSaml/SpBundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$root = $treeBuilder->root('light_saml_sp');
$treeBuilder = new TreeBuilder('light_saml_sp');

if (method_exists($treeBuilder, 'getRootNode')) {
$root = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$root = $treeBuilder->root('light_saml_sp');
}

$root
->children()
Expand Down

0 comments on commit f370850

Please sign in to comment.