Permalink
Browse files

Fix deprecation for symfony/config 4.2+

  • Loading branch information...
franmomu committed Dec 13, 2018
1 parent 8a5a3a0 commit aed52d01d275b09f86d7d027f43b99161a96b000
Showing with 7 additions and 2 deletions.
  1. +7 −2 DependencyInjection/Configuration.php
@@ -29,8 +29,13 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('eko_feed');
$treeBuilder = new TreeBuilder('eko_feed');
if (\method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
$rootNode = $treeBuilder->root('eko_feed');
}
$rootNode
->children()

0 comments on commit aed52d0

Please sign in to comment.