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:
Franz Liedke 2020-03-27 14:48:40 +01:00
parent dfaa400d85
commit 2277f26e84
2 changed files with 0 additions and 42 deletions

View File

@ -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;
}
}

View File

@ -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));
}
}