use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
+use SocialiteProviders\Manager\SocialiteWasCalled;
class EventServiceProvider extends ServiceProvider
{
* @var array
*/
protected $listen = [
- 'BookStack\Events\SomeEvent' => [
- 'BookStack\Listeners\EventListener',
+ SocialiteWasCalled::class => [
+ 'SocialiteProviders\Slack\SlackExtendSocialite@handle',
],
];
/**
* Register any other events for your application.
*
- * @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
- public function boot(DispatcherContract $events)
+ public function boot()
{
- parent::boot($events);
-
- //
+ parent::boot();
}
}