-
-
Couldn't load subscription status.
- Fork 239
Description
Hi,
As of writing this, handlers implementing the monolog ResettableInterface are correctly configured with the Symfony kernel.reset service tag.
See here:
monolog-bundle/DependencyInjection/MonologExtension.php
Lines 881 to 883 in 72e798c
| if (!in_array($handlerId, $this->nestedHandlers) && is_subclass_of($handlerClass, ResettableInterface::class)) { | |
| $definition->addTag('kernel.reset', ['method' => 'reset']); | |
| } |
I suggest we should do the same thing for processors implementing the monolog ResettableInterface.
It could be handy for the auto-configuration of the UidProcessor for instance: https://github.com/Seldaek/monolog/blob/master/src/Monolog/Processor/UidProcessor.php
If it is something that you would be interested in I could write a PR, I'm just asking for your opinion about that idea first :)
Thank you!