W3cubDocs

/Symfony 4.1

Worker

class Worker

Methods

__construct(ReceiverInterface $receiver, MessageBusInterface $bus)
run()

Receive the messages and dispatch them to the bus.

Details

__construct(ReceiverInterface $receiver, MessageBusInterface $bus)

Parameters

ReceiverInterface $receiver
MessageBusInterface $bus

run()

Receive the messages and dispatch them to the bus.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Messenger/Worker.html