From 94af27fc529bc9726e5282ed31a459c3096cbf69 Mon Sep 17 00:00:00 2001 From: David Kemsley Date: Tue, 31 Jan 2017 11:28:23 +1100 Subject: [PATCH] Switch to using container singleton in provider Laravel 5.4 depreciated the app container share function --- src/Xavrsl/Cas/CasServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xavrsl/Cas/CasServiceProvider.php b/src/Xavrsl/Cas/CasServiceProvider.php index 5fbc64c..ce4217f 100644 --- a/src/Xavrsl/Cas/CasServiceProvider.php +++ b/src/Xavrsl/Cas/CasServiceProvider.php @@ -23,7 +23,7 @@ public function boot() */ public function register() { - $this->app['cas'] = $this->app->share(function() + $this->app->singleton('cas', function() { $config = $this->app['config']->get('cas'); return new CasManager($config);