Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Services\Application\Handlers\Event;
use HiEvents\Exceptions\CannotDeleteEntityException;
use HiEvents\Services\Application\Handlers\Event\DTO\DeleteEventDTO;
use HiEvents\Services\Domain\Event\EventDeletionService;
use Throwable;
class DeleteEventHandler
{
public function __construct(
private readonly EventDeletionService $eventDeletionService,
) {}
/**
* @throws CannotDeleteEntityException
* @throws Throwable
*/
public function handle(DeleteEventDTO $dto): void
{
$this->eventDeletionService->deleteEvent($dto->eventId, $dto->accountId);
}
}