diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 181f73b..5ff7320 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -10,8 +10,8 @@ class Configuration implements ConfigurationInterface { public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('tdbm'); + $treeBuilder = new TreeBuilder('tdbm'); + $rootNode = $treeBuilder->getRootNode(); $rootNode ->children() diff --git a/composer.json b/composer.json index 6dd79a1..84e43da 100644 --- a/composer.json +++ b/composer.json @@ -23,15 +23,15 @@ "require" : { "php" : ">=7.1", "thecodingmachine/tdbm" : "~5.1.0", - "doctrine/doctrine-bundle": "^1.9", + "doctrine/doctrine-bundle": "^1.9 || ^2", "doctrine/orm": "^1 || ^2" }, "require-dev": { "roave/security-advisories": "dev-master", - "symfony/security-bundle": "^4.1.9", - "symfony/yaml": "^4.1.9", + "symfony/security-bundle": "^4.1.9 || ^5", + "symfony/yaml": "^4.1.9 || ^5", "phpunit/phpunit": "^7.5.6", - "phpstan/phpstan": "^0.11.4" + "phpstan/phpstan-shim": "^0.11.4" }, "scripts": { "phpstan": "phpstan analyse TdbmBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress"