Skip to content

Commit

Permalink
Merge pull request #13 from tzookb/master
Browse files Browse the repository at this point in the history
use dependency injection instead of facade
  • Loading branch information
maknz committed Feb 22, 2015
2 parents 07185ce + 54f0444 commit eca38fa
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 eca38fa

Please sign in to comment.