mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
Run symfonysetlist symfony_62
This commit is contained in:
@@ -23,19 +23,17 @@ use Symfony\Component\Workflow\Registry;
|
||||
*
|
||||
* This handler apply a transition if the workflow's configuration defines one.
|
||||
*/
|
||||
final readonly class PostPublicViewMessageHandler implements MessageHandlerInterface
|
||||
#[\Symfony\Component\Messenger\Attribute\AsMessageHandler]
|
||||
final readonly class PostPublicViewMessageHandler
|
||||
{
|
||||
private const LOG_PREFIX = '[PostPublicViewMessageHandler] ';
|
||||
|
||||
private const TRANSITION_ON_VIEW = 'onExternalView';
|
||||
|
||||
public function __construct(
|
||||
private EntityWorkflowSendViewRepository $sendViewRepository,
|
||||
private Registry $registry,
|
||||
private LoggerInterface $logger,
|
||||
private EntityManagerInterface $entityManager,
|
||||
) {}
|
||||
|
||||
public function __invoke(PostPublicViewMessage $message): void
|
||||
{
|
||||
$view = $this->sendViewRepository->find($message->entityWorkflowSendViewId);
|
||||
|
Reference in New Issue
Block a user