Application
Less than 1 minute
Application
Properties
modules
public array $modulescommands
A list of commands registered with the application by modules.
public array $commandsname
private string $nameversion
private string $versioninput
private Input $inputoutput
private Output $outputmethods
A list of methods registered with the application.
private array $methodsMethods
__construct
public __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN'): voidParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$version | string |
add
public add(Module $module): voidParameters
| Parameter | Type | Description |
|---|---|---|
$module | Module |
run
public run(): intregisterMethod
public registerMethod(array $method): voidParameters
| Parameter | Type | Description |
|---|---|---|
$method | array |
handleException
public handleException(\Throwable $e): voidParameters
| Parameter | Type | Description |
|---|---|---|
$e | \Throwable |
handleError
public handleError(int $errno, string $errstr, string $errfile, int $errline): boolParameters
| Parameter | Type | Description |
|---|---|---|
$errno | int | |
$errstr | string | |
$errfile | string | |
$errline | int |
shutdownHandler
Shutdown handler function.
public shutdownHandler(): voidThis function is responsible for executing the shutdown tasks registered in the global variable $__shutdownTasks. It checks if the script is running in CLI mode or if headers have already been sent before executing the tasks.
Generated by Hazaar API Doc Generator on Wed, 07 Jan 2026 11:30:00 +0000