Skip to content

Commit

Permalink
Merge pull request barryvdh#593 from SeanKnight/laravel54-redisstorage
Browse files Browse the repository at this point in the history
Fix RedisStorage for Laravel 5.4
  • Loading branch information
barryvdh authored Jan 26, 2017
2 parents 24e4f02 + e453a1e commit 8eb2af5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,11 @@ protected function selectStorage(DebugBar $debugbar)
break;
case 'redis':
$connection = $config->get('debugbar.storage.connection');
$storage = new RedisStorage($this->app['redis']->connection($connection));
$client = $this->app['redis']->connection($connection);
if (is_a($client, 'Illuminate\Redis\Connections\PredisConnection', false)) {
$client = $client->client();
}
$storage = new RedisStorage($client);
break;
case 'custom':
$class = $config->get('debugbar.storage.provider');
Expand Down

0 comments on commit 8eb2af5

Please sign in to comment.