You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joshua Estes edited this page Oct 4, 2017
·
1 revision
Queue
All Queues share a common interface that allows you to use any queue type the exact same. Some queues have specific ways they do things, and those are documented in those sections. For this page, it's just going to be generic and not specific to any queue.
API
Each queue uses the same API.
getName()
The name of the queue can be retrieved with this method. Names are used internally to your app and should be unique.
$name = $queue->getName();
publish($message)
A $message can be either an object that implements a MessageInterface or one of the support Message Body types (array, string, object).