From 256e1332f536e58e6d4e6f942ad422a7ac6911fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 28 Jun 2019 19:29:55 +0200 Subject: [PATCH 1/2] Add setDriver() --- src/Illuminate/Redis/RedisManager.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Illuminate/Redis/RedisManager.php b/src/Illuminate/Redis/RedisManager.php index 198a10444752..96b1ed31d5b6 100644 --- a/src/Illuminate/Redis/RedisManager.php +++ b/src/Illuminate/Redis/RedisManager.php @@ -203,6 +203,17 @@ public function disableEvents() { $this->events = false; } + + /** + * Change the default driver. + * + * @param string $driver + * @return void + */ + public function setDriver($driver) + { + $this->driver = $driver; + } /** * Pass methods onto the default Redis connection. From 32325d9dbf3f4f0941f27d3c2496fed33d3cb975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 28 Jun 2019 19:40:59 +0200 Subject: [PATCH 2/2] Remove unnecessary whitespace --- src/Illuminate/Redis/RedisManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Redis/RedisManager.php b/src/Illuminate/Redis/RedisManager.php index 96b1ed31d5b6..e6056c1bb1fa 100644 --- a/src/Illuminate/Redis/RedisManager.php +++ b/src/Illuminate/Redis/RedisManager.php @@ -203,7 +203,7 @@ public function disableEvents() { $this->events = false; } - + /** * Change the default driver. *