PHP Интерфейс AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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