PHP Class Aerys\Process

Show file Open project: amphp/aerys Class Usage Examples

Public Methods

Method Description
__construct ( Psr\Log\LoggerInterface $logger )
start ( Console $console ) : Generator Start the process
stop ( ) : Generator Stop the process

Protected Methods

Method Description
doStart ( Console $console ) : Generator
doStop ( ) : Generator
exit ( ) This function only exists as protected so we can test for its invocation

Private Methods

Method Description
registerErrorHandler ( )
registerShutdownHandler ( )
registerSignalHandler ( )

Method Details

__construct() public method

public __construct ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

doStart() abstract protected method

abstract protected doStart ( Console $console ) : Generator
$console Console
return Generator

doStop() abstract protected method

abstract protected doStop ( ) : Generator
return Generator

exit() protected method

This function only exists as protected so we can test for its invocation
protected exit ( )

start() public method

Start the process
public start ( Console $console ) : Generator
$console Console
return Generator

stop() public method

Stop the process
public stop ( ) : Generator
return Generator