mirror of
https://github.com/flarum/core.git
synced 2025-05-12 02:15:21 +02:00
Remove Notifying event for now
As discussed with @luceos, let's add this once the use case comes up. It might be a left-over from a previous state of this PR anyway.
This commit is contained in:
parent
2ba29a9088
commit
23da7b3373
@ -1,39 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of Flarum.
|
|
||||||
*
|
|
||||||
* For detailed copyright and license information, please view the
|
|
||||||
* LICENSE file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Flarum\Notification\Event;
|
|
||||||
|
|
||||||
use Flarum\Notification\Blueprint\BlueprintInterface;
|
|
||||||
|
|
||||||
class Notifying
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The blueprint for the notification.
|
|
||||||
*
|
|
||||||
* @var BlueprintInterface
|
|
||||||
*/
|
|
||||||
public $blueprint;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The users that the notification will be sent to.
|
|
||||||
*
|
|
||||||
* @var array|int[]
|
|
||||||
*/
|
|
||||||
public $users;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param \Flarum\Notification\Blueprint\BlueprintInterface $blueprint
|
|
||||||
* @param \Flarum\User\User[] $users
|
|
||||||
*/
|
|
||||||
public function __construct(BlueprintInterface $blueprint, array &$users)
|
|
||||||
{
|
|
||||||
$this->blueprint = $blueprint;
|
|
||||||
$this->users = &$users;
|
|
||||||
}
|
|
||||||
}
|
|
@ -11,7 +11,6 @@ namespace Flarum\Notification\Job;
|
|||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Flarum\Notification\Blueprint\BlueprintInterface;
|
use Flarum\Notification\Blueprint\BlueprintInterface;
|
||||||
use Flarum\Notification\Event\Notifying;
|
|
||||||
use Flarum\Notification\Event\Sending;
|
use Flarum\Notification\Event\Sending;
|
||||||
use Flarum\Notification\Notification;
|
use Flarum\Notification\Notification;
|
||||||
use Flarum\Queue\AbstractJob;
|
use Flarum\Queue\AbstractJob;
|
||||||
@ -51,7 +50,5 @@ class SendNotificationsJob extends AbstractJob
|
|||||||
];
|
];
|
||||||
}, $this->recipients)
|
}, $this->recipients)
|
||||||
);
|
);
|
||||||
|
|
||||||
event(new Notifying($this->blueprint, $recipients));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user