]> BookStack Code Mirror - bookstack/blob - app/Providers/EventServiceProvider.php
Followed Laravel 9 update steps and file changes
[bookstack] / app / Providers / EventServiceProvider.php
1 <?php
2
3 namespace BookStack\Providers;
4
5 use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6 use SocialiteProviders\Manager\SocialiteWasCalled;
7
8 class EventServiceProvider extends ServiceProvider
9 {
10     /**
11      * The event listener mappings for the application.
12      *
13      * @var array<class-string, array<int, class-string>>
14      */
15     protected $listen = [
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',
23         ],
24     ];
25
26     /**
27      * Register any events for your application.
28      *
29      * @return void
30      */
31     public function boot()
32     {
33         //
34     }
35
36     /**
37      * Determine if events and listeners should be automatically discovered.
38      *
39      * @return bool
40      */
41     public function shouldDiscoverEvents()
42     {
43         return false;
44     }
45 }