1
0
mirror of synced 2024-11-24 22:06:06 +03:00
service-bundle/Messenger/MessageHandler.php
Кривич Сергей 897df39d96 Update code base
2022-07-20 14:38:42 +03:00

23 lines
481 B
PHP

<?php
namespace RetailCrm\ServiceBundle\Messenger;
use RetailCrm\ServiceBundle\Messenger\MessageHandler\JobRunner;
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
use Exception;
class MessageHandler implements MessageHandlerInterface
{
public function __construct(private JobRunner $runner)
{
}
/**
* @throws Exception
*/
public function __invoke(CommandMessage $message): void
{
$this->runner->run($message);
}
}