Skip to content

Commit a84adfb

Browse files
Symfony 5.0 Update
A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0
1 parent 63b79f1 commit a84adfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Configuration implements ConfigurationInterface
1212
*/
1313
public function getConfigTreeBuilder()
1414
{
15-
$tb = new TreeBuilder();
16-
$rootNode = $tb->root('enqueue_elastica');
15+
$tb = new TreeBuilder('enqueue_elastica');
16+
$rootNode = $tb->getRootNode();
1717
$rootNode
1818
->children()
1919
->booleanNode('enabled')->defaultValue(true)->end()

0 commit comments

Comments
 (0)