BookStack/app/App/Providers/EventServiceProvider.php

50 lines
1.3 KiB
PHP
Raw Normal View History

2015-07-13 03:01:42 +08:00
<?php
2023-05-18 00:56:55 +08:00
namespace BookStack\App\Providers;
2015-07-13 03:01:42 +08:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use SocialiteProviders\Azure\AzureExtendSocialite;
use SocialiteProviders\Discord\DiscordExtendSocialite;
use SocialiteProviders\GitLab\GitLabExtendSocialite;
use SocialiteProviders\Manager\SocialiteWasCalled;
use SocialiteProviders\Okta\OktaExtendSocialite;
use SocialiteProviders\Twitch\TwitchExtendSocialite;
2015-07-13 03:01:42 +08:00
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array<class-string, array<int, class-string>>
2015-07-13 03:01:42 +08:00
*/
protected $listen = [
SocialiteWasCalled::class => [
AzureExtendSocialite::class . '@handle',
OktaExtendSocialite::class . '@handle',
GitLabExtendSocialite::class . '@handle',
TwitchExtendSocialite::class . '@handle',
DiscordExtendSocialite::class . '@handle',
2015-07-13 03:01:42 +08:00
],
];
/**
* Register any events for your application.
2015-07-13 03:01:42 +08:00
*
* @return void
*/
public function boot()
2015-07-13 03:01:42 +08:00
{
//
}
/**
* Determine if events and listeners should be automatically discovered.
*
* @return bool
*/
public function shouldDiscoverEvents()
{
return false;
2015-07-13 03:01:42 +08:00
}
}