PHP 인터페이스 AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface

파일 보기 프로젝트 열기: appserver-io/appserver 0 사용 예제들

공개 메소드들

메소드 설명
init ( React\Socket\ConnectionInterface $conn = null, integer $runlevel = ApplicationServerInterface::FULL ) : void The runlevel to switch to.
keepRunning ( ) : boolean Query whether the application server should keep running or not.
mode ( React\Socket\ConnectionInterface $conn, string $mode ) : void Switch to the passed mode, which can either be 'dev', 'prod' or 'install'.
runlevelToString ( integer $runlevel ) : string Translates and returns a string representation of the passed runlevel.

메소드 상세

init() 공개 메소드

The runlevel to switch to.
public init ( React\Socket\ConnectionInterface $conn = null, integer $runlevel = ApplicationServerInterface::FULL ) : void
$conn React\Socket\ConnectionInterface The connection resource
$runlevel integer The new runlevel to switch to
리턴 void

keepRunning() 공개 메소드

Query whether the application server should keep running or not.
public keepRunning ( ) : boolean
리턴 boolean TRUE if the server should keep running, else FALSE

mode() 공개 메소드

Switch to the passed mode, which can either be 'dev', 'prod' or 'install'.
public mode ( React\Socket\ConnectionInterface $conn, string $mode ) : void
$conn React\Socket\ConnectionInterface The connection resource
$mode string The setup mode to switch to
리턴 void

runlevelToString() 공개 메소드

Translates and returns a string representation of the passed runlevel.
public runlevelToString ( integer $runlevel ) : string
$runlevel integer The runlevel to return the string representation for
리턴 string The string representation for the passed runlevel