Remove implementation MessageHandlerInterface and use #[AsMessageHandler] attribute

This interface no longer exists
This commit is contained in:
2025-10-01 10:05:12 +02:00
parent 69b59d2ae2
commit 119d870ac8
3 changed files with 3 additions and 6 deletions

View File

@@ -20,10 +20,9 @@ use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler; use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException; use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
#[AsMessageHandler] #[AsMessageHandler]
final readonly class ExportRequestGenerationMessageHandler implements MessageHandlerInterface final readonly class ExportRequestGenerationMessageHandler
{ {
private const LOG_PREFIX = '[export_generation] '; private const LOG_PREFIX = '[export_generation] ';

View File

@@ -17,10 +17,9 @@ use Psr\Log\LoggerInterface;
use Symfony\Component\Clock\ClockInterface; use Symfony\Component\Clock\ClockInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler; use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException; use Symfony\Component\Messenger\Exception\UnrecoverableMessageHandlingException;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
#[AsMessageHandler] #[AsMessageHandler]
final readonly class RemoveExportGenerationMessageHandler implements MessageHandlerInterface final readonly class RemoveExportGenerationMessageHandler
{ {
private const LOG_PREFIX = '[RemoveExportGenerationMessageHandler] '; private const LOG_PREFIX = '[RemoveExportGenerationMessageHandler] ';

View File

@@ -13,10 +13,9 @@ namespace Chill\PersonBundle\AccompanyingPeriod\Lifecycle;
use Chill\PersonBundle\Repository\AccompanyingPeriodRepository; use Chill\PersonBundle\Repository\AccompanyingPeriodRepository;
use Symfony\Component\Messenger\Attribute\AsMessageHandler; use Symfony\Component\Messenger\Attribute\AsMessageHandler;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
#[AsMessageHandler] #[AsMessageHandler]
class AccompanyingPeriodStepChangeMessageHandler implements MessageHandlerInterface class AccompanyingPeriodStepChangeMessageHandler
{ {
private const LOG_PREFIX = '[accompanying period step change message handler] '; private const LOG_PREFIX = '[accompanying period step change message handler] ';