]> BookStack Code Mirror - bookstack/blob - app/Providers/EventServiceProvider.php
add everything needed to use discord as social login provider
[bookstack] / app / Providers / EventServiceProvider.php
1 <?php
2
3 namespace BookStack\Providers;
4
5 use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
6 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
7 use SocialiteProviders\Manager\SocialiteWasCalled;
8
9 class EventServiceProvider extends ServiceProvider
10 {
11     /**
12      * The event listener mappings for the application.
13      *
14      * @var array
15      */
16     protected $listen = [
17         SocialiteWasCalled::class => [
18             'SocialiteProviders\Slack\SlackExtendSocialite@handle',
19             'SocialiteProviders\Azure\AzureExtendSocialite@handle',
20             'SocialiteProviders\Okta\OktaExtendSocialite@handle',
21             'SocialiteProviders\GitLab\GitLabExtendSocialite@handle',
22             'SocialiteProviders\Twitch\TwitchExtendSocialite@handle',
23             'SocialiteProviders\Discord\DiscordExtendSocialite@handle',
24         ],
25     ];
26
27     /**
28      * Register any other events for your application.
29      *
30      * @return void
31      */
32     public function boot()
33     {
34         parent::boot();
35     }
36 }