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()