Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f972cfa

Browse files
committed
SSH connections shouldn't be cached as global state.
1 parent 37fe941 commit f972cfa

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/Illuminate/Remote/RemoteManager.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ class RemoteManager {
1212
*/
1313
protected $app;
1414

15-
/**
16-
* The active connection instances.
17-
*
18-
* @var array
19-
*/
20-
protected $connections = array();
21-
2215
/**
2316
* Create a new remote manager instance.
2417
*
@@ -91,12 +84,7 @@ public function multiple(array $names)
9184
*/
9285
public function resolve($name)
9386
{
94-
if ( ! isset($this->connections[$name]))
95-
{
96-
$this->connections[$name] = $this->makeConnection($name, $this->getConfig($name));
97-
}
98-
99-
return $this->connections[$name];
87+
return $this->makeConnection($name, $this->getConfig($name));
10088
}
10189

10290
/**

0 commit comments

Comments
 (0)