Skip to content

Commit

Permalink
Fix cache.store does not exist when using in Lumen 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
rymanalu committed Dec 8, 2016
1 parent 4c95491 commit 7065fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CircuitBreakerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CircuitBreakerServiceProvider extends ServiceProvider
public function register()
{
$this->app->singleton(CircuitBreaker::class, function ($app) {
return new CircuitBreaker($app['cache.store']);
return new CircuitBreaker($app['cache']->store());
});
}

Expand Down

0 comments on commit 7065fe6

Please sign in to comment.