private function createSshConnectionDefinition(
        $sshId,
        $serverName,
        $directory,
        $executable,
        array $sshConfig
    ) {
        $connectionDefinition = new Definition(
            SshConnection::class, [
                new Reference($sshId),
                new Reference('input'),
                new Reference('output'),
                $serverName,
                $directory,
                $executable,
                $sshConfig,
            ]
        );
        $connectionDefinition->setLazy(true);

        return $connectionDefinition;
    }
private function createSshConnectionDefinition(
        $sshId,
        $serverName,
        $directory,
        $executable,
        array $sshConfig
    ) {
        $connectionDefinition = new Definition(
            SshConnection::class, [
                new Reference($sshId),
                new Reference('input'),
                new Reference('output'),
                $serverName,
                $directory,
                $executable,
                $sshConfig,
            ]
        );
        $connectionDefinition->setLazy(true);

        return $connectionDefinition;
    }
private function createSshConnectionDefinition ( $ sshId , $ serverName , $ directory , $ executable , array $ sshConfig ) { $ connectionDefinition = new Definition ( SshConnection :: class , [ new Reference ( $ sshId ) , new Reference ( 'input' ) , new Reference ( 'output' ) , $ serverName , $ directory , $ executable , $ sshConfig , ] ) ; $ connectionDefinition -> setLazy ( true ) ; return $ connectionDefinition ; }
Create a new ssh-connection.

@param string $sshId
@param string $serverName
@param string $directory
@param string $executable
@param array $sshConfig

@return Definition
Create a new ssh - connection .