PHP Class PHPDaemon\Examples\Example

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Core\AppInstance
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$counter

Méthodes publiques

Méthode Description
beginRequest ( $req, $upstream ) : ExampleRequest Creates Request.
init ( ) : void Constructor.
onReady ( ) : void Called when the worker is ready to go.
onShutdown ( $graceful = false ) : boolean Called when application instance is going to shutdown.

Méthodes protégées

Méthode Description
getConfigDefaults ( ) : boolean Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options

Method Details

beginRequest() public méthode

Creates Request.
public beginRequest ( $req, $upstream ) : ExampleRequest
Résultat ExampleRequest Request.

getConfigDefaults() protected méthode

Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options
protected getConfigDefaults ( ) : boolean
Résultat boolean

init() public méthode

Constructor.
public init ( ) : void
Résultat void

onReady() public méthode

Called when the worker is ready to go.
public onReady ( ) : void
Résultat void

onShutdown() public méthode

Called when application instance is going to shutdown.
public onShutdown ( $graceful = false ) : boolean
Résultat boolean Ready to shutdown?

Property Details

$counter public_oe property

public $counter