Skip to content

Commit

Permalink
Added Support for Laravel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
sugoireed committed Jul 23, 2020
1 parent eff2ae0 commit b325829
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Provider/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ class LaravelServiceProvider extends BaseProvider {

public function register()
{

$this->app->bind('apiconsumer',function($app){
return new Router($app, $app['request'], $app['router']);
});
}

public function boot()
{
$this->app->singleton('apiconsumer', function(){
$app = app();

$this->app->singleton('apiconsumer', function($app){
return new Router($app, $app['request'], $app['router']);
});
}
Expand Down

0 comments on commit b325829

Please sign in to comment.