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