Skip to content

Commit

Permalink
Update Service Provider for L5.4 fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
fadion authored Mar 28, 2017
1 parent 790ced4 commit 3d19b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExchangeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ExchangeServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app['exchange'] = $this->app->share(function($app) {
$this->app->singleton(Exchange::class, function ($app) {
return new Exchange;
});
}
Expand All @@ -32,7 +32,7 @@ public function register()
*/
public function provides()
{
return ['exchange'];
return [Exchange::class];
}

}

0 comments on commit 3d19b4f

Please sign in to comment.