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\SelfService;
use HiEvents\Repository\Interfaces\EventRepositoryInterface;
use HiEvents\Repository\Interfaces\OrderRepositoryInterface;
use HiEvents\Services\Application\Handlers\SelfService\DTO\ResendEmailPublicDTO;
use HiEvents\Services\Domain\SelfService\SelfServiceResendEmailService;
class ResendOrderConfirmationPublicHandler
{
use SelfServiceValidationTrait;
public function __construct(
private readonly OrderRepositoryInterface $orderRepository,
private readonly EventRepositoryInterface $eventRepository,
private readonly SelfServiceResendEmailService $selfServiceResendEmailService,
) {}
public function handle(ResendEmailPublicDTO $dto): void
{
$this->loadAndValidateEvent($dto->eventId);
$order = $this->loadAndValidateOrder($dto->orderShortId, $dto->eventId);
$this->selfServiceResendEmailService->resendOrderConfirmation(
orderId: $order->getId(),
eventId: $dto->eventId,
ipAddress: $dto->ipAddress,
userAgent: $dto->userAgent
);
}
}