From d9cbb53035c17ea8d21f06bbddd1d9bf585b397d Mon Sep 17 00:00:00 2001 From: Cyril VERLOOP Date: Fri, 8 Nov 2019 15:37:36 +0100 Subject: [PATCH] make TreeBuilder use compatible with Symfony 5.0 --- DependencyInjection/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index b55c3c6..60f0024 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -15,10 +15,10 @@ public function getConfigTreeBuilder() { $captchaLibPathDefault = Path::getDefaultLibPackageDirPath(); - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('captcha'); + $treeBuilder = new TreeBuilder('captcha'); - $rootNode + $treeBuilder + ->getRootNode() ->children() ->variableNode('botdetect_captcha_path')->defaultValue($captchaLibPathDefault)->end() ->variableNode('captchaConfig')->defaultValue(null)->end()