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']); } }