From 1e9fb4b4a415804c67a04be65e603d624c4c7620 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Fri, 1 Mar 2024 22:39:44 +0700 Subject: [PATCH] fix: Fix missing `kernel.reset` tags. --- CHANGELOG.md | 4 ++++ config/debug.php | 3 ++- config/services.php | 3 ++- src/DependencyInjection/CompilerPass/DebugPass.php | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61e37d7b..a8cceb18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 1.1.1 + +* fix: Fix missing `kernel.reset` tags. + ## 1.1.0 * feat: `PresetTransformer`. diff --git a/config/debug.php b/config/debug.php index f1533697..02451eea 100644 --- a/config/debug.php +++ b/config/debug.php @@ -21,5 +21,6 @@ ->set('rekalogika.mapper.data_collector', MapperDataCollector::class) ->tag('data_collector', [ 'id' => 'rekalogika_mapper', - ]); + ]) + ->tag('kernel.reset', ['method' => 'reset']); }; diff --git a/config/services.php b/config/services.php index 80c418e3..48ff1f42 100644 --- a/config/services.php +++ b/config/services.php @@ -454,7 +454,8 @@ '$typeResolver' => service('rekalogika.mapper.type_resolver'), '$transformerRegistry' => service('rekalogika.mapper.transformer_registry'), '$debug' => param('kernel.debug'), - ]); + ]) + ->tag('kernel.reset', ['method' => 'reset']); $services ->set('rekalogika.mapper.mapper', Mapper::class) diff --git a/src/DependencyInjection/CompilerPass/DebugPass.php b/src/DependencyInjection/CompilerPass/DebugPass.php index 20e650d9..74a0d5fd 100644 --- a/src/DependencyInjection/CompilerPass/DebugPass.php +++ b/src/DependencyInjection/CompilerPass/DebugPass.php @@ -74,6 +74,7 @@ public function process(ContainerBuilder $container): void ->setArguments([ $decoratedService, $dataCollector, - ]); + ]) + ->addTag('kernel.reset', ['method' => 'reset']); } }