Skip to content

Commit

Permalink
Service container binding
Browse files Browse the repository at this point in the history
  • Loading branch information
IsraelOrtuno committed Dec 15, 2015
1 parent a506c57 commit 32d0ec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PipedriveServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PipedriveServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton('pipedrive', function ($app) {
$this->app->singleton(Pipedrive::class, function ($app) {
$token = $app['config']->get('services.pipedrive.token');

if (! $token) {
Expand All @@ -23,6 +23,8 @@ public function register()

return new Pipedrive($token);
});

$this->app->alias(Pipedrive::class, 'pipedrive');
}

/**
Expand Down

0 comments on commit 32d0ec7

Please sign in to comment.