diff --git a/src/Server/Builder.php b/src/Server/Builder.php index 5df2534e..898d6dff 100644 --- a/src/Server/Builder.php +++ b/src/Server/Builder.php @@ -236,4 +236,19 @@ class Builder implements BuilderInterface return $this; } + + /** + * Use pty in ssh2 connection + * + * @param $ssh2Pty + * @deprecated v5.0 + * @return BuilderInterface + */ + public function ssh2Pty($ssh2Pty) + { + $this->config->setSsh2Pty($ssh2Pty); + + return $this; + } + } diff --git a/src/Server/Configuration.php b/src/Server/Configuration.php index c2c6fb14..8e3bc0bf 100644 --- a/src/Server/Configuration.php +++ b/src/Server/Configuration.php @@ -440,4 +440,27 @@ class Configuration { return $this->pty; } + + /** + * Set pty for ssh2 connection. For retro compatibility + * + * @param $ssh2Pty + * @deprecated v5.0 + */ + public function setSsh2Pty($ssh2Pty) + { + $this->setPty($ssh2Pty); + } + + /** + * Get pty option for ssh2 connection. For retro compatibility + * + * @deprecated v5.0 + * @return mixed + */ + public function getSsh2Pty() + { + return $this->getPty(); + } + }