mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-03 20:09:42 +00:00
Remove implementation MessageHandlerInterface and use #[AsMessageHandler] attribute
This interface no longer exists
This commit is contained in:
@@ -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] ';
|
||||||
|
|
||||||
|
@@ -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] ';
|
||||||
|
|
||||||
|
@@ -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] ';
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user