Skip to content

Commit

Permalink
Fix deprecation on symfony/config 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Oct 27, 2018
1 parent 8204f3c commit 45742f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('monolog');
$treeBuilder = new TreeBuilder('monolog');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('monolog');

$rootNode
->fixXmlConfig('channel')
Expand Down

0 comments on commit 45742f1

Please sign in to comment.