Skip to content

Commit

Permalink
BC
Browse files Browse the repository at this point in the history
  • Loading branch information
trsteel88 authored Jun 29, 2021
1 parent ce8e82d commit 941ff66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 941ff66

Please sign in to comment.