Skip to content

Commit

Permalink
Added ability to get queue name from method (#19703)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishardinge authored and taylorotwell committed Jun 21, 2017
1 parent 54e5d21 commit 57bb280
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Broadcasting/BroadcastManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ public function queue($event)

$queue = null;

if (isset($event->broadcastQueue)) {
if (method_exists($event, 'broadcastQueue')) {
$queue = $event->broadcastQueue();
} elseif (isset($event->broadcastQueue)) {
$queue = $event->broadcastQueue;
} elseif (isset($event->queue)) {
$queue = $event->queue;
Expand Down

0 comments on commit 57bb280

Please sign in to comment.