Skip to content

Commit d41b691

Browse files
committed
Merge pull request #1 from etorofiev/master
Update for compatability with Laravel 5.2
2 parents c997805 + 90df0fd commit d41b691

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "optimus/api-consumer",
33
"require": {
4-
"laravel/framework": "~5.1"
4+
"laravel/framework": "~5.2"
55
},
66
"require-dev": {
77
"phpunit/phpunit": "~4.7",

src/Provider/LaravelServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public function register()
1414

1515
public function boot()
1616
{
17-
$this->app->bindShared('apiconsumer', function(){
17+
$this->app->singleton('apiconsumer', function(){
1818
$app = app();
1919

2020
return new Router($app, $app['request'], $app['router']);
2121
});
2222
}
2323

24-
}
24+
}

tests/Provider/LaravelServiceProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public function testServiceProviderIsWorking()
88
{
99
$appMock = m::mock('Illuminate\Foundation\Application');
1010

11-
$appMock->shouldReceive('bindShared')->with(
11+
$appMock->shouldReceive('singleton')->with(
1212
'apiconsumer',
1313
m::type('Closure')
1414
);
@@ -21,4 +21,4 @@ public function testServiceProviderIsWorking()
2121
$provider->boot();
2222
}
2323

24-
}
24+
}

0 commit comments

Comments
 (0)