From ddf603132f1a63119f73995fe4ee48d9e6966097 Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Sat, 14 Jan 2017 10:38:41 +0100 Subject: [PATCH] L 5.4: share method replaced by singleton --- src/Msurguy/Honeypot/HoneypotServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Msurguy/Honeypot/HoneypotServiceProvider.php b/src/Msurguy/Honeypot/HoneypotServiceProvider.php index bd345a2..1424243 100644 --- a/src/Msurguy/Honeypot/HoneypotServiceProvider.php +++ b/src/Msurguy/Honeypot/HoneypotServiceProvider.php @@ -20,7 +20,7 @@ class HoneypotServiceProvider extends ServiceProvider { */ public function register() { - $this->app['honeypot'] = $this->app->share(function($app) + $this->app->singleton('honeypot', function($app) { return new Honeypot; }); @@ -67,7 +67,7 @@ public function provides() /** * Determine if laravel starts with any of the given version strings - * + * * @param string|array $startsWith * @return boolean */