feat: call off single disposition as admin with optional notification

This commit is contained in:
Björn Fromme
2025-07-22 16:15:18 +02:00
parent b5314d270a
commit 231d0f315b
19 changed files with 1383 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Event;
use App\Entity\Disposition;
use Symfony\Contracts\EventDispatcher\Event;
class DispositionCalledOffEvent extends Event
{
public const NAME = 'disposition.called_off';
public function __construct(private readonly Disposition $disposition, private readonly bool $sendNotification = false)
{
}
public function getDisposition(): Disposition
{
return $this->disposition;
}
public function isSendNotification(): bool
{
return $this->sendNotification;
}
}