diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 11f423a8..02653b00 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -34,8 +34,12 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('jms_job_queue'); + $treeBuilder = new TreeBuilder('jms_job_queue'); + if (method_exists($treeBuilder, 'getRootNode')) { + $rootNode = $treeBuilder->getRootNode(); + } else { + $rootNode = $treeBuilder->root('jms_job_queue'); + } $rootNode ->children()