10000 [MonologBridge] Implement `ResettableInterface` on `Processor` by lyrixx · Pull Request #60017 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[MonologBridge] Implement ResettableInterface on Processor #60017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified Diff View
Unified
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Bridge\Monolog\Processor;

use Monolog\LogRecord;
use Monolog\ResettableInterface;
use Symfony\Component\Console\ConsoleEvents;
use Symfony\Component\Console\Event\ConsoleEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
Expand All @@ -22,7 +23,7 @@
*
* @author Piotr Stankowski <git@trakos.pl>
*/
final class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface
final class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface, ResettableInterface
{
private array $commandData;

Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@

use Monolog\Level;
use Monolog\LogRecord;
use Monolog\ResettableInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Contracts\Service\ResetInterface;

class DebugProcessor implements DebugLoggerInterface, ResetInterface
class DebugProcessor implements DebugLoggerInterface, ResetInterface, ResettableInterface
{
private array $records = [];
private array $errorCount = [];
Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Bridge/Monolog/Processor/RouteProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Bridge\Monolog\Processor;

use Monolog\LogRecord;
use Monolog\ResettableInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;
Expand All @@ -25,7 +26,7 @@
*
* @final
*/
class RouteProcessor implements EventSubscriberInterface, ResetInterface
class RouteProcessor implements EventSubscriberInterface, ResetInterface, ResettableInterface
{
private array $routeData = [];

Expand Down
Loading
0