]> BookStack Code Mirror - bookstack/blobdiff - app/Providers/EventServiceProvider.php
#47 - Fixes the issues with the test case.
[bookstack] / app / Providers / EventServiceProvider.php
index 1d97e7e256f3e066c635c9c6e25bef193b01034e..d82a560f99987fef423adb6db969b01cc5314f49 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 
-namespace Oxbow\Providers;
+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
 {
@@ -13,21 +14,18 @@ class EventServiceProvider extends ServiceProvider
      * @var array
      */
     protected $listen = [
-        'Oxbow\Events\SomeEvent' => [
-            'Oxbow\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();
     }
 }