Expand settings for notifications.

This commit is contained in:
James Cole
2024-12-11 07:23:46 +01:00
parent c35ff3174a
commit c920070ce2
24 changed files with 476 additions and 252 deletions

View File

@@ -23,23 +23,23 @@ declare(strict_types=1);
namespace FireflyIII\Events\Test;
use FireflyIII\User;
use FireflyIII\Notifications\Notifiables\OwnerNotifiable;
use Illuminate\Queue\SerializesModels;
class TestNotificationChannel
{
use SerializesModels;
public User $user;
public string $channel;
public OwnerNotifiable $owner;
public string $channel;
/**
* Create a new event instance.
*/
public function __construct(string $channel, User $user)
public function __construct(string $channel, OwnerNotifiable $owner)
{
app('log')->debug(sprintf('Triggered TestNotificationChannel("%s") for user #%d (%s)', $channel, $user->id, $user->email));
$this->user = $user;
app('log')->debug(sprintf('Triggered TestNotificationChannel("%s")', $channel));
$this->owner = $owner;
$this->channel = $channel;
}
}