namespace BookStack\Providers;
-use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
+use SocialiteProviders\Manager\SocialiteWasCalled;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
- * @var array
+ * @var array<class-string, array<int, class-string>>
*/
protected $listen = [
- 'BookStack\Events\SomeEvent' => [
- 'BookStack\Listeners\EventListener',
+ SocialiteWasCalled::class => [
+ 'SocialiteProviders\Slack\SlackExtendSocialite@handle',
+ 'SocialiteProviders\Azure\AzureExtendSocialite@handle',
+ 'SocialiteProviders\Okta\OktaExtendSocialite@handle',
+ 'SocialiteProviders\GitLab\GitLabExtendSocialite@handle',
+ 'SocialiteProviders\Twitch\TwitchExtendSocialite@handle',
+ 'SocialiteProviders\Discord\DiscordExtendSocialite@handle',
],
];
*/
public function boot()
{
- parent::boot();
}
}