From 900a5a15946ade138aa222bbb6eff5b989c3cc1c Mon Sep 17 00:00:00 2001 From: Jan Rogozinsky Date: Sat, 19 Mar 2022 21:17:37 +0200 Subject: [PATCH] Update Configuration.php --- DependencyInjection/Configuration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 099ec73..dfa2e66 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -17,10 +17,10 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('sf_i18n'); + $treeBuilder = new TreeBuilder('sf_i18n'); - $rootNode + $treeBuilder + ->getRootNode() ->children() ->arrayNode('classes') ->addDefaultsIfNotSet()