%command.name% shows message that are pending in the failure transport. * * php %command.full_name% * * Or look at a specific message by its id: * * php %command.full_name% {id} * * Optional arguments are -q (quiet) -v[v[v]] (verbosity) and --force (do not ask) */ public function showCommand() { $command = new FailedMessagesShowCommand( $this->configuration['failureTransport'], $this->receiverContainer->get($this->configuration['failureTransport']) ); $this->run($command); } /** * Remove given messages from the failure transport * * The %command.name% removes given messages that are pending in the failure transport. * * php %command.full_name% {id1} [{id2} ...] * * The specific ids can be found via the messenger:failed:show command. * * Optional arguments are -q (quiet) -v[v[v]] (verbosity) and --force (do not ask) */ public function removeCommand() { $command = new FailedMessagesRemoveCommand( $this->configuration['failureTransport'], $this->receiverContainer->get($this->configuration['failureTransport']) ); $this->run($command); } /** * Retry one or more messages from the failure transport * * The command will interactively ask if each message should be retried * or discarded. * * Some transports support retrying a specific message id, which comes * from the messenger:failed:show command. * * php %command.full_name% {id} * * Or pass multiple ids at once to process multiple messages: * * php %command.full_name% {id1} {id2} {id3} * * Optional arguments are -q (quiet) -v[v[v]] (verbosity) and --force (do not ask) * * @noinspection PhpParamsInspection */ public function retryCommand() { $command = new FailedMessagesRetryCommand( $this->configuration['failureTransport'], $this->receiverContainer->get($this->configuration['failureTransport']), $this->objectManager->get('DigiComp.FlowSymfonyBridge.Messenger:RoutableMessageBus'), $this->objectManager->get('DigiComp.FlowSymfonyBridge.Messenger:EventDispatcher'), $this->objectManager->get(LoggerInterface::class) ); $this->run($command); } }