PHP Class PHPDaemon\Examples\Example

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

Public Properties

Property Type Description
$counter

Public Methods

Method 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.

Protected Methods

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

Method Details

beginRequest() public method

Creates Request.
public beginRequest ( $req, $upstream ) : ExampleRequest
return ExampleRequest Request.

getConfigDefaults() protected method

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

init() public method

Constructor.
public init ( ) : void
return void

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void

onShutdown() public method

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

Property Details

$counter public property

public $counter