We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e0b140 + 5bdc241 commit 6cd24e5Copy full SHA for 6cd24e5
DependencyInjection/Configuration.php
@@ -28,8 +28,13 @@ class Configuration implements ConfigurationInterface
28
*/
29
public function getConfigTreeBuilder()
30
{
31
- $builder = new TreeBuilder();
32
- $rootNode = $builder->root(EcentriaCrontabBundle::ALIAS);
+ $builder = new TreeBuilder(EcentriaCrontabBundle::ALIAS);
+ if (method_exists($builder, 'getRootNode')) {
33
+ $rootNode = $builder->getRootNode();
34
+ } else {
35
+ // BC layer for symfony/config 4.1 and older
36
+ $rootNode = $builder->root(EcentriaCrontabBundle::ALIAS);
37
+ }
38
39
$rootNode
40
->children()
0 commit comments