src/Rocketeer/Services/Connections/ConnectionsFactory.php
public function make(ConnectionKey $connectionKey)
    {
        $type = $connectionKey->host === 'localhost' ? LocalConnection::class : Connection::class;

        return new $type($connectionKey);
    }
public function make(ConnectionKey $connectionKey)
    {
        $type = $connectionKey->host === 'localhost' ? LocalConnection::class : Connection::class;

        return new $type($connectionKey);
    }
public function make ( ConnectionKey $ connectionKey ) { $ type = $ connectionKey -> host === 'localhost' ? LocalConnection :: class : Connection :: class ; return new $ type ( $ connectionKey ) ; }
Build a Connection instance from a ConnectionKey.

@param ConnectionKey $connectionKey

@return Connection
Build a Connection instance from a ConnectionKey .