public function queue(string $queueName, JobInterface $job, array $options = []): void
    {
        $queue = $this->queueManager->getQueue($queueName);

        $payload = serialize($job);
        $messageId = $queue->submit($payload, $options);
        $this->emitMessageSubmitted($queue, $messageId, $payload, $options);
    }
public function queue(string $queueName, JobInterface $job, array $options = []): void
    {
        $queue = $this->queueManager->getQueue($queueName);

        $payload = serialize($job);
        $messageId = $queue->submit($payload, $options);
        $this->emitMessageSubmitted($queue, $messageId, $payload, $options);
    }
public function queue ( string $ queueName , JobInterface $ job , array $ options = [ ] ) : void { $ queue = $ this -> queueManager -> getQueue ( $ queueName ) ; $ payload = serialize ( $ job ) ; $ messageId = $ queue -> submit ( $ payload , $ options ) ; $ this -> emitMessageSubmitted ( $ queue , $ messageId , $ payload , $ options ) ; }
Put a job in the queue

@param string $queueName
@param JobInterface $job The job to submit to the queue
@param array $options Simple key/value array with options that will be passed to the queue for this job (optional)
@return void
@api
Put a job in the queue