Rocketeer\Services\Connections\ConnectionsHandler::getConnectionCredentials PHP Method

getConnectionCredentials() public method

Get the credentials for a particular connection.
public getConnectionCredentials ( string | null $connection = null ) : string[][]
$connection string | null
return string[][]
    public function getConnectionCredentials($connection = null)
    {
        $connection = $connection ?: $this->getConnection();
        $available = $this->getAvailableConnections();
        return Arr::get($available, $connection . '.servers');
    }