Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix deprecation for symfony/config 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mhujer committed Nov 30, 2018
1 parent e6dcab5 commit 32bf4fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root("white_october_breadcrumbs");
$treeBuilder = new TreeBuilder("white_october_breadcrumbs");

if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $treeBuilder->root("white_october_breadcrumbs");
}

$rootNode->
children()->
Expand Down

0 comments on commit 32bf4fd

Please sign in to comment.