1
0
mirror of https://github.com/flarum/core.git synced 2025-08-23 08:33:45 +02:00

[1.x] [extensibility] feat: allow classes that extends AbstractJob to be placed on a specified queue (#4026)

* feat: allow classes that extends AbstractJob to be placed on a specific queue

* Apply fixes from StyleCI

* php 7.3 compat

* Apply fixes from StyleCI

* change  to  to avoid conflicts with extensions that already do this

* chore: add docblock explaining that this solution only works for Redis queues

* Apply fixes from StyleCI

* chore: update docblock

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
IanM
2024-09-29 15:35:29 +01:00
committed by GitHub
parent c9bd7dab1e
commit 2c4d64cd20
8 changed files with 30 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ class SendPusherNotificationsJob extends AbstractJob
public function __construct(BlueprintInterface $blueprint, array $recipients)
{
parent::__construct();
$this->blueprint = $blueprint;
$this->recipients = $recipients;
}