Skip to content

Commit 6bd5c52

Browse files
committed
minor #19014 Add implements ProcessorInterface (jschaedl)
This PR was merged into the 6.3 branch. Discussion ---------- Add implements ProcessorInterface The code example is not wrong, but I believe it makes it more understandable if we implement the `ProcessorInterface` to show where the `__invoke` method comes from. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 478dbda Add implements ProcessorInterface
2 parents eaf4fe4 + 478dbda commit 6bd5c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logging/processors.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ using a processor::
2020
namespace App\Logger;
2121

2222
use Monolog\LogRecord;
23+
use Monolog\Processor\ProcessorInterface;
2324
use Symfony\Component\HttpFoundation\Exception\SessionNotFoundException;
2425
use Symfony\Component\HttpFoundation\RequestStack;
2526

26-
class SessionRequestProcessor
27+
class SessionRequestProcessor implements ProcessorInterface
2728
{
2829
public function __construct(
2930
private RequestStack $requestStack

0 commit comments

Comments
 (0)