Skip to content

Commit 743e68f

Browse files
authored
Merge pull request laravel#28985 from stancl/patch-3
[5.8] Add setDriver()
2 parents dacad2a + 32325d9 commit 743e68f

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/Illuminate/Redis/RedisManager.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,17 @@ public function disableEvents()
204204
$this->events = false;
205205
}
206206

207+
/**
208+
* Change the default driver.
209+
*
210+
* @param string $driver
211+
* @return void
212+
*/
213+
public function setDriver($driver)
214+
{
215+
$this->driver = $driver;
216+
}
217+
207218
/**
208219
* Pass methods onto the default Redis connection.
209220
*

0 commit comments

Comments
 (0)