mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
[Scrutinizer] Revert deprecated ssh2Pty methods in Builder and Configuration
This commit is contained in:
parent
867305c5e0
commit
66ccef785a
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user