DigiComp.FlowSymfonyBridge..../Tests/Functional/Fixtures/Message/FailingTestMessageHandler.php

19 lines
452 B
PHP
Raw Permalink Normal View History

<?php
namespace DigiComp\FlowSymfonyBridge\Messenger\Tests\Functional\Fixtures\Message;
use Symfony\Component\Messenger\Handler\MessageSubscriberInterface;
class FailingTestMessageHandler implements MessageSubscriberInterface
{
public static function getHandledMessages(): iterable
{
yield FailingMessage::class => [];
}
public function __invoke(FailingMessage $message)
{
throw new \Exception('bang!');
}
}