Skip to content

Commit 94b30f7

Browse files
committed
Remove router dependency injection
1 parent c3a90dc commit 94b30f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ExpoPushNotificationsServiceProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ExpoPushNotificationsServiceProvider extends ServiceProvider
1616
*
1717
* @return void
1818
*/
19-
public function boot(\Illuminate\Routing\Router $router)
19+
public function boot()
2020
{
2121
$this->setupConfig();
2222

@@ -29,8 +29,9 @@ public function boot(\Illuminate\Routing\Router $router)
2929
->give(function () use ($repository) {
3030
return new Expo(new ExpoRegistrar($repository));
3131
});
32-
33-
$router->middlewareGroup('expo.middleware', config("exponent-push-notifications")["middleware"]);
32+
33+
$router = $this->app['router'];
34+
$router->middlewareGroup('expo.middleware', config('exponent-push-notifications')['middleware']);
3435

3536
$this->loadRoutesFrom(__DIR__.'/Http/routes.php');
3637
}

0 commit comments

Comments
 (0)