Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Change 'share' method in service provider to 'singleton' to support L5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Geary committed Mar 1, 2017
1 parent ec78bd9 commit b447d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rossedman/Teamwork/TeamworkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TeamworkServiceProvider extends ServiceProvider {
*/
public function register()
{
$this->app['rossedman.teamwork'] = $this->app->share(function($app)
$this->app->singleton('rossedman.teamwork', function($app)
{
$client = new \Rossedman\Teamwork\Client(new Guzzle,
$app['config']->get('services.teamwork.key'),
Expand Down

0 comments on commit b447d8c

Please sign in to comment.