]> BookStack Code Mirror - bookstack/blob - app/Providers/EventServiceProvider.php
Adds test cases and fixes an issue with the permission checking.
[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         ],
22     ];
23
24     /**
25      * Register any other events for your application.
26      *
27      * @return void
28      */
29     public function boot()
30     {
31         parent::boot();
32     }
33 }