From 533d27785e2b220ddb62a472aba5c0b01faff652 Mon Sep 17 00:00:00 2001 From: Tchama Date: Fri, 31 Jul 2020 18:21:00 +0200 Subject: [PATCH] sf4, adding require symfony/templating + fix treebuilder depreciation --- DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 84c2147bb..5bdd68cd4 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -18,8 +18,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('chill_custom_fields'); + $treeBuilder = new TreeBuilder('chill_custom_fields'); + $rootNode = $treeBuilder->getRootNode('chill_custom_fields'); $classInfo = "The class which may receive custom fields"; $nameInfo = "The name which will appears in the user interface. May be translatable";