A list of commands registered with the application by modules.
public __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN'): void
Parameter | Type | Description |
---|
$name | string | |
$version | string | |
public add(Module $module): void
Parameter | Type | Description |
---|
$module | Module | |
public writeHelp(Output $output): void
Parameter | Type | Description |
---|
$output | Output | |
public getCommandModule(string $command): ?Module
Parameter | Type | Description |
---|
$command | string | |
public handleException(\Throwable $e): void
Parameter | Type | Description |
---|
$e | \Throwable | |
public handleError(int $errno, string $errstr, string $errfile, int $errline): bool
Parameter | Type | Description |
---|
$errno | int | |
$errstr | string | |
$errfile | string | |
$errline | int | |
Shutdown handler function.
public shutdownHandler(): void
This 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 Tue, 06 May 2025 01:33:01 +0000