3 namespace BookStack\App\Providers;
5 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6 use SocialiteProviders\Azure\AzureExtendSocialite;
7 use SocialiteProviders\Discord\DiscordExtendSocialite;
8 use SocialiteProviders\GitLab\GitLabExtendSocialite;
9 use SocialiteProviders\Manager\SocialiteWasCalled;
10 use SocialiteProviders\Okta\OktaExtendSocialite;
11 use SocialiteProviders\Twitch\TwitchExtendSocialite;
13 class EventServiceProvider extends ServiceProvider
16 * The event listener mappings for the application.
18 * @var array<class-string, array<int, class-string>>
21 SocialiteWasCalled::class => [
22 AzureExtendSocialite::class . '@handle',
23 OktaExtendSocialite::class . '@handle',
24 GitLabExtendSocialite::class . '@handle',
25 TwitchExtendSocialite::class . '@handle',
26 DiscordExtendSocialite::class . '@handle',
31 * Register any events for your application.
33 public function boot(): void
39 * Determine if events and listeners should be automatically discovered.
41 public function shouldDiscoverEvents(): bool