Skip to content

Commit

Permalink
L 5.4: share method replaced by singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Jan 14, 2017
1 parent 1ae75cf commit ddf6031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Msurguy/Honeypot/HoneypotServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down Expand Up @@ -67,7 +67,7 @@ public function provides()

/**
* Determine if laravel starts with any of the given version strings
*
*
* @param string|array $startsWith
* @return boolean
*/
Expand Down

0 comments on commit ddf6031

Please sign in to comment.