2023-03-17 14:33:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2024-03-01 13:04:29 +00:00
|
|
|
use App\Listeners\MaintenanceModeDisabledNotification;
|
|
|
|
|
use App\Listeners\MaintenanceModeEnabledNotification;
|
|
|
|
|
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;
|
2024-12-11 16:09:21 +00:00
|
|
|
use SocialiteProviders\Authentik\AuthentikExtendSocialite;
|
|
|
|
|
use SocialiteProviders\Azure\AzureExtendSocialite;
|
2025-06-18 12:29:46 +00:00
|
|
|
use SocialiteProviders\Clerk\ClerkExtendSocialite;
|
2025-06-18 12:19:01 +00:00
|
|
|
use SocialiteProviders\Discord\DiscordExtendSocialite;
|
2025-02-17 00:44:22 +00:00
|
|
|
use SocialiteProviders\Google\GoogleExtendSocialite;
|
2024-12-12 18:39:11 +00:00
|
|
|
use SocialiteProviders\Infomaniak\InfomaniakExtendSocialite;
|
2024-12-11 16:09:21 +00:00
|
|
|
use SocialiteProviders\Manager\SocialiteWasCalled;
|
2025-06-18 12:35:54 +00:00
|
|
|
use SocialiteProviders\Zitadel\ZitadelExtendSocialite;
|
2023-03-17 14:33:48 +00:00
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
protected $listen = [
|
2024-03-01 13:04:29 +00:00
|
|
|
MaintenanceModeEnabled::class => [
|
|
|
|
|
MaintenanceModeEnabledNotification::class,
|
|
|
|
|
],
|
|
|
|
|
MaintenanceModeDisabled::class => [
|
|
|
|
|
MaintenanceModeDisabledNotification::class,
|
|
|
|
|
],
|
2024-12-11 16:09:21 +00:00
|
|
|
SocialiteWasCalled::class => [
|
|
|
|
|
AzureExtendSocialite::class.'@handle',
|
|
|
|
|
AuthentikExtendSocialite::class.'@handle',
|
2025-06-18 12:29:46 +00:00
|
|
|
ClerkExtendSocialite::class.'@handle',
|
2025-06-18 12:19:01 +00:00
|
|
|
DiscordExtendSocialite::class.'@handle',
|
2025-02-17 00:44:22 +00:00
|
|
|
GoogleExtendSocialite::class.'@handle',
|
2024-12-12 18:39:11 +00:00
|
|
|
InfomaniakExtendSocialite::class.'@handle',
|
2025-06-18 12:35:54 +00:00
|
|
|
ZitadelExtendSocialite::class.'@handle',
|
2024-03-06 16:30:19 +00:00
|
|
|
],
|
2023-03-17 14:33:48 +00:00
|
|
|
];
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2023-03-17 14:33:48 +00:00
|
|
|
public function boot(): void
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2023-03-17 14:33:48 +00:00
|
|
|
public function shouldDiscoverEvents(): bool
|
|
|
|
|
{
|
2025-06-06 12:47:54 +00:00
|
|
|
return true;
|
2023-03-17 14:33:48 +00:00
|
|
|
}
|
|
|
|
|
}
|