Skip to content

Commit

Permalink
make resolve public
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 17, 2017
1 parent 940f43c commit eb9b99d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Illuminate/Redis/RedisManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public function __construct($driver, array $config)
* @param string|null $name
* @return \Illuminate\Redis\Connections\Connection
*/
public function connection($name = null, $forceNew = false)
public function connection($name = null)
{
$name = $name ?: 'default';

if (isset($this->connections[$name]) && $forceNew == false) {
if (isset($this->connections[$name])) {
return $this->connections[$name];
}

Expand All @@ -61,13 +61,15 @@ public function connection($name = null, $forceNew = false)
/**
* Resolve the given connection by name.
*
* @param string $name
* @param string|null $name
* @return \Illuminate\Redis\Connections\Connection
*
* @throws \InvalidArgumentException
*/
protected function resolve($name)
public function resolve($name = null)
{
$name = $name ?: 'default';

$options = Arr::get($this->config, 'options', []);

if (isset($this->config[$name])) {
Expand Down

0 comments on commit eb9b99d

Please sign in to comment.