diff --git a/composer.json b/composer.json index fcdde70..8f0b7da 100644 --- a/composer.json +++ b/composer.json @@ -20,16 +20,16 @@ }, "require": { "php": ">=5.5.1", - "symfony/framework-bundle": "~2.7|~3.0|~4.0", - "symfony/dependency-injection": "~2.7|~3.0|~4.0", - "symfony/yaml": "~2.7|~3.0|~4.0", + "symfony/framework-bundle": "~2.7|~3.0|~4.0|~5.0", + "symfony/dependency-injection": "~2.7|~3.0|~4.0|~5.0", + "symfony/yaml": "~2.7|~3.0|~4.0|~5.0", "lightsaml/lightsaml": "~1.1" }, "require-dev": { - "symfony/browser-kit": "~2.7|~3.0|~4.0", - "symfony/finder": "~2.7|~3.0|~4.0", - "symfony/filesystem": "~2.7|~3.0|~4.0", - "symfony/routing": "~2.7|~3.0|~4.0", + "symfony/browser-kit": "~2.7|~3.0|~4.0|~5.0", + "symfony/finder": "~2.7|~3.0|~4.0|~5.0", + "symfony/filesystem": "~2.7|~3.0|~4.0|~5.0", + "symfony/routing": "~2.7|~3.0|~4.0|~5.0", "phpunit/phpunit": "^5.7" }, "config": { diff --git a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/Configuration.php b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/Configuration.php index a4cc7d6..28b62f2 100644 --- a/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/Configuration.php +++ b/src/LightSaml/SymfonyBridgeBundle/DependencyInjection/Configuration.php @@ -23,8 +23,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $root = $treeBuilder->root('light_saml_symfony_bridge'); + $treeBuilder = new TreeBuilder('light_saml_symfony_bridge'); + $root = $treeBuilder->getRootNode(); $root->children() ->arrayNode('own')