[Scrutinizer] Revert deprecated ssh2Pty methods in Builder and Configuration

This commit is contained in:
Maksim Kuznetsov 2017-02-27 09:54:23 +03:00
parent 867305c5e0
commit 66ccef785a
2 changed files with 38 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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();
}
}