]> BookStack Code Mirror - bookstack/blob - app/App/Providers/EventServiceProvider.php
4cd527ba4a40a91e0b7458aa36bcc56aad6d9b3c
[bookstack] / app / App / Providers / EventServiceProvider.php
1 <?php
2
3 namespace BookStack\App\Providers;
4
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;
12
13 class EventServiceProvider extends ServiceProvider
14 {
15     /**
16      * The event listener mappings for the application.
17      *
18      * @var array<class-string, array<int, class-string>>
19      */
20     protected $listen = [
21         SocialiteWasCalled::class => [
22             AzureExtendSocialite::class . '@handle',
23             OktaExtendSocialite::class . '@handle',
24             GitLabExtendSocialite::class . '@handle',
25             TwitchExtendSocialite::class . '@handle',
26             DiscordExtendSocialite::class . '@handle',
27         ],
28     ];
29
30     /**
31      * Register any events for your application.
32      */
33     public function boot(): void
34     {
35         //
36     }
37
38     /**
39      * Determine if events and listeners should be automatically discovered.
40      */
41     public function shouldDiscoverEvents(): bool
42     {
43         return false;
44     }
45 }