Свойство | Тип | Описание | |
---|---|---|---|
$logger | Logger | PSR-3 logger. |
Метод | Описание | |
---|---|---|
__construct ( array $properties = [] ) : void | Constructor. Will call set_error_handler() and pcntl_signal() to setup your errorHandler() and signalHandler(). Also will call register_shutdown_function() to register your shutdown() function. | |
errorHandler ( integer $type, string $message, string $file, integer $line ) : boolean | Your error handler. Be careful when implementing this one. | |
init ( ) : void | Called to initialize the application | |
run ( ) : void | Called to run the application, after calling init(). | |
setLogger ( Psr\Log\LoggerInterface $logger ) : void | Sets the logger implementation. | |
shutdown ( ) : void | Called when PHPvm is shutting down. | |
signalHandler ( integer $signal ) : void | Your signal handler. Be careful when implementing this one. |
Метод | Описание | |
---|---|---|
getAgi ( ) : PAGI\Client\IClient | Returns AGI Client. |
public __construct ( array $properties = [] ) : void | ||
$properties | array | Optional additional properties. |
Результат | void |
abstract public errorHandler ( integer $type, string $message, string $file, integer $line ) : boolean | ||
$type | integer | PHP Error type constant. |
$message | string | Human readable error message string. |
$file | string | File that triggered the error. |
$line | integer | Line that triggered the error. |
Результат | boolean |
protected getAgi ( ) : PAGI\Client\IClient | ||
Результат | PAGI\Client\IClient |
abstract public signalHandler ( integer $signal ) : void | ||
$signal | integer | Signal catched. |
Результат | void |