From e5b3be587e521d83128e16e51af8e8e4dea65987 Mon Sep 17 00:00:00 2001 From: Connor Burton Date: Thu, 26 Jan 2017 11:21:23 +0000 Subject: [PATCH 1/2] Adding compatibility for Laravel 5.4 --- src/ServiceProviderLaravel5.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServiceProviderLaravel5.php b/src/ServiceProviderLaravel5.php index 78812fb05..9660e6cf4 100644 --- a/src/ServiceProviderLaravel5.php +++ b/src/ServiceProviderLaravel5.php @@ -26,7 +26,7 @@ public function register() { $this->mergeConfigFrom(__DIR__.'/config/config.php', 'slack'); - $this->app['maknz.slack'] = $this->app->share(function ($app) { + $this->app->singleton('maknz.slack', function ($app) { return new Client( $app['config']->get('slack.endpoint'), [ @@ -43,6 +43,6 @@ public function register() ); }); - $this->app->bind('Maknz\Slack\Client', 'maknz.slack'); + $this->app->bind(Maknz\Slack\Client::class, 'maknz.slack'); } } From 5b6bb0e0c082c6cb2240561506df06f19e4606a4 Mon Sep 17 00:00:00 2001 From: Connor Burton Date: Fri, 27 Jan 2017 21:29:08 +0000 Subject: [PATCH 2/2] Changing bind --- src/ServiceProviderLaravel5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProviderLaravel5.php b/src/ServiceProviderLaravel5.php index 9660e6cf4..973ebe5d7 100644 --- a/src/ServiceProviderLaravel5.php +++ b/src/ServiceProviderLaravel5.php @@ -43,6 +43,6 @@ public function register() ); }); - $this->app->bind(Maknz\Slack\Client::class, 'maknz.slack'); + $this->app->bind(Client::class, 'maknz.slack'); } }