From 02b31a6c8a421721bbdec47b7b7d7c046c6bbdb1 Mon Sep 17 00:00:00 2001 From: Oliver Kaufmann Date: Thu, 6 Aug 2020 22:07:20 +0200 Subject: [PATCH] add just alias, since Teamwork class can now be resolved by typehinting --- src/TeamworkServiceProvider.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/TeamworkServiceProvider.php b/src/TeamworkServiceProvider.php index 34a7f6e..59c83bf 100644 --- a/src/TeamworkServiceProvider.php +++ b/src/TeamworkServiceProvider.php @@ -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. * @@ -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'); } /**