<?php

namespace App\Listeners\Packages;

use App\Events\Packages\EventPackageGuestLimitReached;
use App\Jobs\Packages\SendEventPackageGuestLimitNotification;

class QueueGuestLimitNotification
{
    public function handle(EventPackageGuestLimitReached $event): void
    {
        SendEventPackageGuestLimitNotification::dispatch(
            $event->eventPackage->id,
            $event->limit
        );
    }
}
