Skip to content

Commit 256e133

Browse files
authored
Add setDriver()
1 parent 70cc971 commit 256e133

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
@@ -203,6 +203,17 @@ public function disableEvents()
203203
{
204204
$this->events = false;
205205
}
206+
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+
}
206217

207218
/**
208219
* Pass methods onto the default Redis connection.

0 commit comments

Comments
 (0)