Skip to content

Commit

Permalink
Merge pull request #28985 from stancl/patch-3
Browse files Browse the repository at this point in the history
[5.8] Add setDriver()
  • Loading branch information
taylorotwell authored Jun 28, 2019
2 parents dacad2a + 32325d9 commit 743e68f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Redis/RedisManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,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.
*
Expand Down

0 comments on commit 743e68f

Please sign in to comment.