mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 18:33:40 +08: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
dfaa400d85
commit
2277f26e84
|
@ -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 Flarum\Notification\Blueprint\BlueprintInterface;
|
||||
use Flarum\Notification\Event\Notifying;
|
||||
use Flarum\Notification\Event\Sending;
|
||||
use Flarum\Notification\Notification;
|
||||
use Flarum\Queue\AbstractJob;
|
||||
|
@ -51,7 +50,5 @@ class SendNotificationsJob extends AbstractJob
|
|||
];
|
||||
}, $this->recipients)
|
||||
);
|
||||
|
||||
event(new Notifying($this->blueprint, $recipients));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user