moltin / laravel-cart

Laravel Facade and Service Provider for Moltin\Cart
276 stars 87 forks source link

LaravelServiceProvider & PHP 5.3 #18

Closed TomKita closed 10 years ago

TomKita commented 10 years ago

Using $this in a closure function is not compliant with PHP 5.3 as it is a 5.4 feature. Your packagist package requires >= 5.3.0.

    $this->app->singleton('cart', function() {
        return new Cart($this->getStorageService(), $this->getIdentifierService());
    });