diff --git a/bundle/Debug/DebugProcessor.php b/bundle/Debug/DebugProcessor.php index e180da60..17e44c7e 100644 --- a/bundle/Debug/DebugProcessor.php +++ b/bundle/Debug/DebugProcessor.php @@ -7,6 +7,7 @@ use Monolog\LogRecord; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Log\DebugLoggerInterface; +use Symfony\Contracts\Service\ResetInterface; use function call_user_func; use function in_array; @@ -19,7 +20,7 @@ * By default, it excludes "doctrine" and "event" channels, which cause most * of the slowdown when rendering the profiler. */ -final class DebugProcessor implements DebugLoggerInterface +final class DebugProcessor implements DebugLoggerInterface, ResetInterface { /** * @param string[] $excludedChannels @@ -52,4 +53,9 @@ public function clear(): void { $this->innerProcessor->clear(); } + + public function reset(): void + { + $this->clear(); + } }