Skip to content

Commit

Permalink
Merge pull request #7 from jdecool/feat/symfony5-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jdecool authored Jun 1, 2021
2 parents 5a1394c + 8b31975 commit 7dfda1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Provide extra features for Monolog.

The actual version of this bundle support `Symfony >= 4.4`.
If you need support for older versions, you have to use version `< 3.0`.

## Installation

Via composer :
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"require": {
"php": ">=5.6",
"symfony/monolog-bundle": "~2.0 || ~3.0",
"symfony/expression-language": "~2.3 || ~3.0 || ~4.0"
"symfony/expression-language": "~4.2 || ~5.0"
},
"require-dev": {
"atoum/atoum": "~3.0",
"symfony/yaml": "~2.3 || ~3.0 || ~4.0"
"symfony/yaml": "~4.2 || ~5.0"
},
"autoload": {
"psr-0": { "": "src/" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('m6_web_monolog_extra');
$treeBuilder = new TreeBuilder('m6_web_monolog_extra');
$rootNode = $treeBuilder->getRootNode();

$rootNode
->children()
Expand Down

0 comments on commit 7dfda1e

Please sign in to comment.