ConsumeMessagesCommand extends Command
Heavily stripped-down version of the symfony command with the same name.
Attributes
- #[AsCommand]
- 'messenger:consume'
- 'Consume messages'
Table of Contents
Methods
- __construct() : mixed
- complete() : void
- configure() : void
- execute() : int
- interact() : mixed
Methods
__construct()
public
__construct(MessageBusInterface $messageBus, ServiceLocator $receiverLocator, StopWorkerOnTimeLimitListener $stopWorkerOnTimeLimitListener, EventDispatcherInterface $eventDispatcher[, array<string|int, mixed> $receiverNames = [] ][, array<string|int, mixed> $busIds = [] ]) : mixed
Parameters
- $messageBus : MessageBusInterface
- $receiverLocator : ServiceLocator
- $stopWorkerOnTimeLimitListener : StopWorkerOnTimeLimitListener
- $eventDispatcher : EventDispatcherInterface
- $receiverNames : array<string|int, mixed> = []
- $busIds : array<string|int, mixed> = []
complete()
public
complete(CompletionInput $input, CompletionSuggestions $suggestions) : void
Parameters
- $input : CompletionInput
- $suggestions : CompletionSuggestions
configure()
protected
configure() : void
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
intinteract()
protected
interact(InputInterface $input, OutputInterface $output) : mixed
Parameters
- $input : InputInterface
- $output : OutputInterface