Skip to content

Commit

Permalink
give opportunity to use dependency injection instead of facade
Browse files Browse the repository at this point in the history
  • Loading branch information
tzookb committed Feb 22, 2015
1 parent 07185ce commit 54f0444
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SlackServiceProviderLaravel4.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ public function register()
new Guzzle
);
});
$this->app->bind(
'Maknz\Slack\Client',
'maknz.slack'
);
}

}
5 changes: 5 additions & 0 deletions src/SlackServiceProviderLaravel5.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function register()
new Guzzle
);
});

$this->app->bind(
'Maknz\Slack\Client',
'maknz.slack'
);
}

}

0 comments on commit 54f0444

Please sign in to comment.