Skip to content

Commit

Permalink
Merge pull request #44 from TypiCMS/master
Browse files Browse the repository at this point in the history
L 5.4: share method replaced by singleton
  • Loading branch information
msurguy authored Jan 17, 2017
2 parents 1ae75cf + ddf6031 commit 861deef
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 861deef

Please sign in to comment.