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

Commit c929b0f

Browse files
authored
Merge pull request #27 from chrisgeary92/container-singleton-method
Change 'share' method in service provider to 'singleton' to support L5.4
2 parents ec78bd9 + b447d8c commit c929b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rossedman/Teamwork/TeamworkServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class TeamworkServiceProvider extends ServiceProvider {
1212
*/
1313
public function register()
1414
{
15-
$this->app['rossedman.teamwork'] = $this->app->share(function($app)
15+
$this->app->singleton('rossedman.teamwork', function($app)
1616
{
1717
$client = new \Rossedman\Teamwork\Client(new Guzzle,
1818
$app['config']->get('services.teamwork.key'),

0 commit comments

Comments
 (0)