PHP 클래스 Platformsh\Cli\Command\Tunnel\TunnelCommandBase

상속: extends Platformsh\Cli\Command\CommandBase
파일 보기 프로젝트 열기: commerceguys/platform-cli

보호된 프로퍼티들

프로퍼티 타입 설명
$canBeRunMultipleTimes
$tunnelInfo

공개 메소드들

메소드 설명
checkSupport ( )

보호된 메소드들

메소드 설명
closeTunnel ( array $tunnel ) : boolean Close an open tunnel.
createTunnelProcess ( string $url, string $remoteHost, integer $remotePort, integer $localPort, array $extraArgs = [] ) : Process
filterTunnels ( array $tunnels, Symfony\Component\Console\Input\InputInterface $input ) : array Filter a list of tunnels by the currently selected project/environment.
formatTunnelRelationship ( array $tunnel ) : string Format a tunnel's relationship as a string.
getPidFile ( array $tunnel ) : string
getPort ( integer $default = 30000 ) : integer Automatically determine the best port for a new tunnel.
getTunnelInfo ( boolean $open = true ) : array Get info on currently open tunnels.
getTunnelKey ( array $tunnel ) : string
isTunnelOpen ( array $tunnel ) : boolean | array Check whether a tunnel is already open.
openLog ( string $logFile ) : Symfony\Component\Console\Output\OutputInterface | false
saveTunnelInfo ( )
tunnelsAreEqual ( array $tunnel1, array $tunnel2 ) : boolean

메소드 상세

checkSupport() 공개 메소드

public checkSupport ( )

closeTunnel() 보호된 메소드

Close an open tunnel.
protected closeTunnel ( array $tunnel ) : boolean
$tunnel array
리턴 boolean True on success, false on failure.

createTunnelProcess() 보호된 메소드

protected createTunnelProcess ( string $url, string $remoteHost, integer $remotePort, integer $localPort, array $extraArgs = [] ) : Process
$url string
$remoteHost string
$remotePort integer
$localPort integer
$extraArgs array
리턴 Symfony\Component\Process\Process

filterTunnels() 보호된 메소드

Filter a list of tunnels by the currently selected project/environment.
protected filterTunnels ( array $tunnels, Symfony\Component\Console\Input\InputInterface $input ) : array
$tunnels array
$input Symfony\Component\Console\Input\InputInterface
리턴 array

formatTunnelRelationship() 보호된 메소드

Format a tunnel's relationship as a string.
protected formatTunnelRelationship ( array $tunnel ) : string
$tunnel array
리턴 string

getPidFile() 보호된 메소드

protected getPidFile ( array $tunnel ) : string
$tunnel array
리턴 string

getPort() 보호된 메소드

Automatically determine the best port for a new tunnel.
protected getPort ( integer $default = 30000 ) : integer
$default integer
리턴 integer

getTunnelInfo() 보호된 메소드

Get info on currently open tunnels.
protected getTunnelInfo ( boolean $open = true ) : array
$open boolean
리턴 array

getTunnelKey() 보호된 메소드

protected getTunnelKey ( array $tunnel ) : string
$tunnel array
리턴 string

isTunnelOpen() 보호된 메소드

Check whether a tunnel is already open.
protected isTunnelOpen ( array $tunnel ) : boolean | array
$tunnel array
리턴 boolean | array

openLog() 보호된 메소드

protected openLog ( string $logFile ) : Symfony\Component\Console\Output\OutputInterface | false
$logFile string
리턴 Symfony\Component\Console\Output\OutputInterface | false

saveTunnelInfo() 보호된 메소드

protected saveTunnelInfo ( )

tunnelsAreEqual() 보호된 메소드

protected tunnelsAreEqual ( array $tunnel1, array $tunnel2 ) : boolean
$tunnel1 array
$tunnel2 array
리턴 boolean

프로퍼티 상세

$canBeRunMultipleTimes 보호되어 있는 프로퍼티

protected $canBeRunMultipleTimes

$tunnelInfo 보호되어 있는 프로퍼티

protected $tunnelInfo