2023-03-17 14:33:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2024-03-12 10:22:02 +00:00
|
|
|
use App\Events\ProxyStarted;
|
2024-03-01 13:04:29 +00:00
|
|
|
use App\Listeners\MaintenanceModeDisabledNotification;
|
|
|
|
use App\Listeners\MaintenanceModeEnabledNotification;
|
2024-03-12 10:22:02 +00:00
|
|
|
use App\Listeners\ProxyStartedNotification;
|
2024-03-01 13:04:29 +00:00
|
|
|
use Illuminate\Foundation\Events\MaintenanceModeDisabled;
|
|
|
|
use Illuminate\Foundation\Events\MaintenanceModeEnabled;
|
2023-03-17 14:33:48 +00:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
protected $listen = [
|
2024-03-01 13:04:29 +00:00
|
|
|
MaintenanceModeEnabled::class => [
|
|
|
|
MaintenanceModeEnabledNotification::class,
|
|
|
|
],
|
|
|
|
MaintenanceModeDisabled::class => [
|
|
|
|
MaintenanceModeDisabledNotification::class,
|
|
|
|
],
|
2024-03-06 16:30:19 +00:00
|
|
|
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
|
|
|
|
\SocialiteProviders\Azure\AzureExtendSocialite::class.'@handle',
|
|
|
|
],
|
2024-03-20 12:58:31 +00:00
|
|
|
ProxyStarted::class => [
|
2024-03-12 10:22:02 +00:00
|
|
|
ProxyStartedNotification::class,
|
|
|
|
],
|
2023-03-17 14:33:48 +00:00
|
|
|
];
|
|
|
|
public function boot(): void
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
public function shouldDiscoverEvents(): bool
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|