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
And also if you want to dequeue message, you can use thedequeue() method.
$message = $queue->enqueue();
Queue handler
To handle the inserted messages, you should create the queue handler.The queue handler must implement theQueueHandlerInterface interface.
<?phpnamespace Crocos\MyAppBundle\Queue;use Crocos\QueueBundle\Queue\QueueHandlerInterface;class FooHandler implements QueueHandlerInterface{ public function handleMessage($message) { // do something you need. }}
Observe queues
First, you need to copy a queue script fromCrocosQueueBundle.
$ cd /path/to/app$ cp src/Crocos/QueueBundle/Resources/skeleton/queue app/queue
And then run a queue script.
$ php app/queue
Available options
--env: Application environment. (default: dev)
--debug: Enable debug mode if this option specified.