PHP Interface AppserverIo\Appserver\Core\Interfaces\ApplicationServerInterface

Afficher le fichier Open project: appserver-io/appserver Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

init() public méthode

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
Résultat void

keepRunning() public méthode

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

mode() public méthode

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
Résultat void

runlevelToString() public méthode

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
Résultat string The string representation for the passed runlevel