Skip to content

Commit

Permalink
add just alias, since Teamwork class can now be resolved by typehinting
Browse files Browse the repository at this point in the history
  • Loading branch information
okaufmann committed Aug 6, 2020
1 parent a4a7f0f commit 02b31a6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/TeamworkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

class TeamworkServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;

/**
* Bootstrap the application events.
*
Expand Down Expand Up @@ -68,9 +61,7 @@ public function register()
*/
protected function registerTeamwork()
{
$this->app->bind('teamwork', function ($app) {
return new Teamwork($app);
});
$this->app->alias(Teamwork::class, 'teamwork');
}

/**
Expand Down

0 comments on commit 02b31a6

Please sign in to comment.