<?php

namespace App\Listeners\Packages;

use App\Events\Packages\EventPackagePhotoLimitReached;
use App\Jobs\Packages\SendEventPackagePhotoLimitNotification;

class QueuePhotoLimitNotification
{
    public function handle(EventPackagePhotoLimitReached $event): void
    {
        SendEventPackagePhotoLimitNotification::dispatch(
            $event->eventPackage->id,
            $event->limit
        );
    }
}
