Skip to content

Commit 6960645

Browse files
authored
Add getPausedQueues() to QueueFactory for illuminate/queue v13.11+ compatibility
illuminate/queue v13.11 added a call to getPausedQueues() in Worker.php, but Flarum's QueueFactory doesn't implement this method, causing the queue worker to crash with «Call to undefined method» and breaking all queued mail. This adds a no-op implementation — returns empty array — consistent with the existing isPaused() pattern.
1 parent 29da25d commit 6960645

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

framework/core/src/Queue/QueueFactory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,18 @@ public function connection($name = null)
5252

5353
return $this->queue;
5454
}
55+
56+
/**
57+
* Get the list of paused queues.
58+
*
59+
* This is a no-op implementation since Flarum's simplified queue factory
60+
* doesn't support queue pausing. illuminate/queue v13.11+ expects this
61+
* method to exist on the queue manager.
62+
*
63+
* @return array
64+
*/
65+
public function getPausedQueues(): array
66+
{
67+
return [];
68+
}
5569
}

0 commit comments

Comments
 (0)