We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 45a5a17 + 1b2af22 commit 575b2fcCopy full SHA for 575b2fc
DependencyInjection/Configuration.php
@@ -17,8 +17,14 @@ class Configuration implements ConfigurationInterface
17
*/
18
public function getConfigTreeBuilder()
19
{
20
- $treeBuilder = new TreeBuilder();
21
- $rootNode = $treeBuilder->root('burgov_key_value_form');
+ $treeBuilder = new TreeBuilder('burgov_key_value_form');
+
22
+ if (method_exists($treeBuilder, 'getRootNode')) {
23
+ $rootNode = $treeBuilder->getRootNode();
24
+ } else {
25
+ // BC layer for symfony/config 4.1 and older
26
+ $rootNode = $treeBuilder->root('burgov_key_value_form');
27
+ }
28
29
// Here you should define the parameters that are allowed to
30
// configure your bundle. See the documentation linked above for
0 commit comments