Skip to content

Commit

Permalink
Merge pull request #1 from etorofiev/master
Browse files Browse the repository at this point in the history
Update for compatability with Laravel 5.2
  • Loading branch information
esbenp committed Jan 10, 2016
2 parents c997805 + 90df0fd commit d41b691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "optimus/api-consumer",
"require": {
"laravel/framework": "~5.1"
"laravel/framework": "~5.2"
},
"require-dev": {
"phpunit/phpunit": "~4.7",
Expand Down
4 changes: 2 additions & 2 deletions src/Provider/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public function register()

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

return new Router($app, $app['request'], $app['router']);
});
}

}
}
4 changes: 2 additions & 2 deletions tests/Provider/LaravelServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public function testServiceProviderIsWorking()
{
$appMock = m::mock('Illuminate\Foundation\Application');

$appMock->shouldReceive('bindShared')->with(
$appMock->shouldReceive('singleton')->with(
'apiconsumer',
m::type('Closure')
);
Expand All @@ -21,4 +21,4 @@ public function testServiceProviderIsWorking()
$provider->boot();
}

}
}

0 comments on commit d41b691

Please sign in to comment.