<?php

namespace App\Listeners\Packages;

use App\Events\Packages\EventPackageGalleryExpiring;
use App\Jobs\Packages\SendEventPackageGalleryWarning;

class QueueGalleryWarningNotification
{
    public function handle(EventPackageGalleryExpiring $event): void
    {
        SendEventPackageGalleryWarning::dispatch(
            $event->eventPackage->id,
            $event->daysRemaining
        );
    }
}
