mirror of
https://github.com/flarum/core.git
synced 2025-08-30 19:40:02 +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:
@@ -47,6 +47,8 @@ class SendMentionsNotificationsJob extends AbstractJob
|
||||
|
||||
public function __construct(CommentPost $post, array $userMentions, array $postMentions, array $groupMentions)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->post = $post;
|
||||
$this->userMentions = $userMentions;
|
||||
$this->postMentions = $postMentions;
|
||||
|
Reference in New Issue
Block a user