We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9cf6ec + 0bd03e3 commit ac5e963Copy full SHA for ac5e963
src/Kiczort/PolishValidatorBundle/DependencyInjection/Configuration.php
@@ -28,8 +28,13 @@ class Configuration implements ConfigurationInterface
28
*/
29
public function getConfigTreeBuilder()
30
{
31
- $treeBuilder = new TreeBuilder();
32
- $rootNode = $treeBuilder->root('kiczort_polish_validator');
+ $treeBuilder = new TreeBuilder('kiczort_polish_validator');
+ if (\method_exists($treeBuilder, 'getRootNode')) {
33
+ $rootNode = $treeBuilder->getRootNode();
34
+ } else {
35
+ // BC layer for symfony/config 4.1 and older
36
+ $rootNode = $treeBuilder->root('kiczort_polish_validator');
37
+ }
38
39
// Here you should define the parameters that are allowed to
40
// configure your bundle. See the documentation linked above for
0 commit comments