Feat: Make dispositions deletable by admins

This commit is contained in:
Björn Fromme
2023-10-21 10:50:47 +02:00
parent 0fce77fbb7
commit cc93a0be0c
6 changed files with 143 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Event;
use App\Entity\Disposition;
use Symfony\Contracts\EventDispatcher\Event;
class DispositionDeletedEvent extends Event
{
public const NAME = 'disposition.deleted';
public function __construct(private readonly Disposition $disposition)
{}
public function getDisposition(): Disposition
{
return $this->disposition;
}
}