Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit baf2067

Browse filesBrowse files
minor #60017 [MonologBridge] Implement ResettableInterface on Processor (lyrixx)
This PR was merged into the 7.3 branch. Discussion ---------- [MonologBridge] Implement `ResettableInterface` on `Processor` | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | not really | Deprecations? | no | Issues | | License | MIT See https://github.com/Seldaek/monolog/blob/2b8777dfb48a01321fa1532254f7603a6d4ceebe/src/Monolog/Logger.php#L449 Sometimes, you don't want to reset the whole application, but just a logger Commits ------- a595774 [MonologBridge] Implements ResettableInterface on Processor
2 parents 930bcf7 + a595774 commit baf2067
Copy full SHA for baf2067

File tree

3 files changed

+6
-3
lines changed
Filter options

3 files changed

+6
-3
lines changed

‎src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Processor/ConsoleCommandProcessor.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bridge\Monolog\Processor;
1313

1414
use Monolog\LogRecord;
15+
use Monolog\ResettableInterface;
1516
use Symfony\Component\Console\ConsoleEvents;
1617
use Symfony\Component\Console\Event\ConsoleEvent;
1718
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -22,7 +23,7 @@
2223
*
2324
* @author Piotr Stankowski <git@trakos.pl>
2425
*/
25-
final class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface
26+
final class ConsoleCommandProcessor implements EventSubscriberInterface, ResetInterface, ResettableInterface
2627
{
2728
private array $commandData;
2829

‎src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313

1414
use Monolog\Level;
1515
use Monolog\LogRecord;
16+
use Monolog\ResettableInterface;
1617
use Symfony\Component\HttpFoundation\Request;
1718
use Symfony\Component\HttpFoundation\RequestStack;
1819
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1920
use Symfony\Contracts\Service\ResetInterface;
2021

21-
class DebugProcessor implements DebugLoggerInterface, ResetInterface
22+
class DebugProcessor implements DebugLoggerInterface, ResetInterface, ResettableInterface
2223
{
2324
private array $records = [];
2425
private array $errorCount = [];

‎src/Symfony/Bridge/Monolog/Processor/RouteProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Processor/RouteProcessor.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bridge\Monolog\Processor;
1313

1414
use Monolog\LogRecord;
15+
use Monolog\ResettableInterface;
1516
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1617
use Symfony\Component\HttpKernel\Event\FinishRequestEvent;
1718
use Symfony\Component\HttpKernel\Event\RequestEvent;
@@ -25,7 +26,7 @@
2526
*
2627
* @final
2728
*/
28-
class RouteProcessor implements EventSubscriberInterface, ResetInterface
29+
class RouteProcessor implements EventSubscriberInterface, ResetInterface, ResettableInterface
2930
{
3031
private array $routeData = [];
3132

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.