<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Spatie\UptimeMonitor\Events\UptimeCheckFailed;
use Spatie\UptimeMonitor\Events\UptimeCheckRecovered;
use App\Listeners\NotifyAdminOnUptimeChange;

class EventServiceProvider extends ServiceProvider
{

    protected $listen = [
        UptimeCheckFailed::class => [
            NotifyAdminOnUptimeChange::class,
        ],
        UptimeCheckRecovered::class => [
            NotifyAdminOnUptimeChange::class,
        ],
    ];
    /**
     * Register services.
     */
    public function register(): void
    {
        //
    }

    /**
     * Bootstrap services.
     */
    public function boot(): void
    {
        //
    }
}
