We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e4f256 + d8d969b commit cf34accCopy full SHA for cf34acc
1 file changed
DependencyInjection/Configuration.php
@@ -16,8 +16,13 @@ class Configuration implements ConfigurationInterface
16
{
17
public function getConfigTreeBuilder()
18
19
- $tree = new TreeBuilder();
20
- $root = $tree->root('sil_route_security');
+ $tree = new TreeBuilder('sil_route_security');
+ // Keep compatibility with symfony/config < 4.2
21
+ if (false === method_exists($tree, 'getRootNode')) {
22
+ $root = $tree->root('sil_route_security');
23
+ } else {
24
+ $root = $tree->getRootNode();
25
+ }
26
27
$root
28
->children()
0 commit comments