From 941ff661c7f78cd0da0097482acf2f5dde4bcbb5 Mon Sep 17 00:00:00 2001 From: Trent Steel Date: Tue, 29 Jun 2021 12:27:37 +1000 Subject: [PATCH] BC --- DependencyInjection/Configuration.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 018b280a..1d13d645 100755 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -16,9 +16,11 @@ class Configuration implements ConfigurationInterface * {@inheritdoc} */ public function getConfigTreeBuilder() - { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('trsteel_ckeditor'); + { + $treeBuilder = new TreeBuilder('trsteel_ckeditor'); + $rootNode = method_exists(TreeBuilder::class, 'getRootNode') + ? $treeBuilder->getRootNode() + : $treeBuilder->root('trsteel_ckeditor'); $rootNode ->children()