Skip to content

Commit

Permalink
Fix for issue mayconbordin#5
Browse files Browse the repository at this point in the history
Serve stomp message object headers
  • Loading branch information
oleksandrsavenko authored Jul 12, 2019
1 parent 21ca363 commit 7cb3da6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/StompQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ public function push($job, $data = '', $queue = null)
*
* @param string $payload
* @param string $queue
* @param array $options
* @param array $headers
* @return mixed
*/
public function pushRaw($payload, $queue = null, array $options = [])
public function pushRaw($payload, $queue = null, array $headers = [])
{
$message = new Message($payload);
$this->getStomp()->send($this->getQueue($queue), $message, $options);
$message = new Message($payload, $headers);
$this->getStomp()->send($this->getQueue($queue), $message);
}

/**
Expand Down

0 comments on commit 7cb3da6

Please sign in to comment.