public function send(MessageQueueInterface $messageQueue = null)
    {
        if ($messageQueue === null && $this->messageQueue === null) {
            $messageQueue = Yii::$app->getMessageQueue();
        } elseif ($messageQueue === null) {
            $messageQueue = $this->messageQueue;
        }
        return $messageQueue->send($this);
    }
public function send(MessageQueueInterface $messageQueue = null)
    {
        if ($messageQueue === null && $this->messageQueue === null) {
            $messageQueue = Yii::$app->getMessageQueue();
        } elseif ($messageQueue === null) {
            $messageQueue = $this->messageQueue;
        }
        return $messageQueue->send($this);
    }
public function send ( MessageQueueInterface $ messageQueue = null ) { if ( $ messageQueue === null && $ this -> messageQueue === null ) { $ messageQueue = Yii :: $ app -> getMessageQueue ( ) ; } elseif ( $ messageQueue === null ) { $ messageQueue = $ this -> messageQueue ; } return $ messageQueue -> send ( $ this ) ; }
Sends this message queue message.
@param MessageQueueInterface $messageQueue the message queue that should be used to send this message.
If no message queue is given it will first check if [[messageQueue]] is set and if not,
the "messageQueue" application component will be used instead.
@return bool whether this message is sent successfully.
Sends this message queue message .