original_string: protected function dispatch($message, MessageCallback $callback) : void
      {
          $sendable = $message;
          if (!($message instanceof Serializable)) {
              $sendable = new MessageWrapper($message);
          }
          $mf4phpMessage = $this->findObjectMessageFactory($message)->createMessage($sendable);
          $this->dispatcher->send($this->queue, $mf4phpMessage);
      }
code: protected function dispatch($message, MessageCallback $callback) : void
      {
          $sendable = $message;
          if (!($message instanceof Serializable)) {
              $sendable = new MessageWrapper($message);
          }
          $mf4phpMessage = $this->findObjectMessageFactory($message)->createMessage($sendable);
          $this->dispatcher->send($this->queue, $mf4phpMessage);
      }
code_tokens: protected function dispatch ( $ message , MessageCallback $ callback ) : void { $ sendable = $ message ; if ( ! ( $ message instanceof Serializable ) ) { $ sendable = new MessageWrapper ( $ message ) ; } $ mf4phpMessage = $ this -> findObjectMessageFactory ( $ message ) -> createMessage ( $ sendable ) ; $ this -> dispatcher -> send ( $ this -> queue , $ mf4phpMessage ) ; }
docstring: Send the message to the message queue.
  
  @param $message
  @param MessageCallback $callback
docstring_tokens: Send the message to the message queue .