Collective\Remote\RemoteManager::makeConnection PHP Method

makeConnection() protected method

Make a new connection instance.
protected makeConnection ( string $name, array $config ) : Collective\Remote\Connection
$name string
$config array
return Collective\Remote\Connection
    protected function makeConnection($name, array $config)
    {
        $timeout = isset($config['timeout']) ? $config['timeout'] : 10;
        $this->setOutput($connection = new Connection($name, $config['host'], $config['username'], $this->getAuth($config), null, $timeout));
        return $connection;
    }