Skip to content

Commit

Permalink
Merge pull request #82 from frezno/master
Browse files Browse the repository at this point in the history
Changing share to singleton -> for Laravel 5.4 support
  • Loading branch information
darryldecode authored Mar 8, 2017
2 parents d8f33c3 + 7540f67 commit a8063ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
],
"require": {
"php": ">=5.4.0",
"illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*",
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*",
"illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*"
"illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*",
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*",
"illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*"
},
"require-dev": {
"mockery/mockery": "~0.9",
Expand Down
2 changes: 1 addition & 1 deletion src/Darryldecode/Cart/CartServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function register()
{
$this->mergeConfigFrom(__DIR__.'/config/config.php', 'shopping_cart');

$this->app['cart'] = $this->app->share(function($app)
$this->app->singleton('cart', function($app)
{
$storage = $app['session'];
$events = $app['events'];
Expand Down

0 comments on commit a8063ee

Please sign in to comment.