Skip to content

Commit

Permalink
bug #281 Fix deprecation on symfony/config 4.2 (chalasr)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.x-dev branch.

Discussion
----------

Fix deprecation on symfony/config 4.2

Commits
-------

45742f1 Fix deprecation on symfony/config 4.2
  • Loading branch information
fabpot committed Nov 4, 2018
2 parents 8204f3c + 45742f1 commit 572e143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
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 572e143

Please sign in to comment.