Skip to content
Permalink
Browse files

[AllBundles] Fix sf4 rootNode deprecation (#2337)

  • Loading branch information...
acrobat authored and Devolicious committed Feb 7, 2019
1 parent 595bcf5 commit 9fff8cbf36b4705bbdc0e16bae7c115ab079b61c
Showing with 7 additions and 2 deletions.
  1. +7 −2 DependencyInjection/Configuration.php
@@ -17,8 +17,13 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('kunstmaan_sitemap');
$treeBuilder = new TreeBuilder('kunstmaan_sitemap');
if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $treeBuilder->root('kunstmaan_sitemap');
}
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

0 comments on commit 9fff8cb

Please sign in to comment.
You can’t perform that action at this time.