coolify/app/Providers/EventServiceProvider.php

40 lines
1.1 KiB
PHP
Raw Normal View History

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