From a9fc7b9e2519f00ab64c9460749b51dd1cd5a6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81re=CC=81my=20DECOOL?= Date: Thu, 27 May 2021 10:21:48 +0200 Subject: [PATCH 1/2] feat(symfony): add Symfony 5 compatibility --- composer.json | 4 ++-- .../MonologExtraBundle/DependencyInjection/Configuration.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index de21c89..92dd48b 100644 --- a/composer.json +++ b/composer.json @@ -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/" } diff --git a/src/M6Web/Bundle/MonologExtraBundle/DependencyInjection/Configuration.php b/src/M6Web/Bundle/MonologExtraBundle/DependencyInjection/Configuration.php index d609f0e..7c165ce 100644 --- a/src/M6Web/Bundle/MonologExtraBundle/DependencyInjection/Configuration.php +++ b/src/M6Web/Bundle/MonologExtraBundle/DependencyInjection/Configuration.php @@ -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() From 8b31975e01c8bcd90ccabe67243d736f57274983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81re=CC=81my=20DECOOL?= Date: Tue, 1 Jun 2021 12:49:05 +0200 Subject: [PATCH 2/2] docs(readme): add information about symfony support --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7475c72..c877474 100644 --- a/README.md +++ b/README.md @@ -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 :