Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (\Throwable $error, Application $application, ?AbstractCommand $command=null) | |
getError () | |
getExitCode () | |
setError (\Throwable $error) | |
setExitCode (int $exitCode) | |
Fonctions membres publiques hérités de ConsoleEvent | |
__construct (string $name, Application $application, ?AbstractCommand $command=null) | |
getApplication () | |
getCommand () | |
Fonctions membres publiques hérités de Event | |
addArgument ($name, $value) | |
setArgument ($name, $value) | |
removeArgument ($name) | |
clearArguments () | |
stop () | |
offsetSet ($name, $value) | |
offsetUnset ($name) | |
Fonctions membres publiques hérités de AbstractEvent | |
__construct ($name, array $arguments=[]) | |
getName () | |
getArgument ($name, $default=null) | |
hasArgument ($name) | |
getArguments () | |
isStopped () | |
stopPropagation () | |
count () | |
serialize () | |
__serialize () | |
unserialize ($serialized) | |
__unserialize (array $data) | |
offsetExists ($name) | |
offsetGet ($name) | |
Attributs privés | |
$error | |
$exitCode | |
Membres hérités additionnels | |
Attributs protégés hérités de AbstractEvent | |
$name | |
$arguments | |
$stopped = false | |
Event triggered when an uncaught Throwable is received by the application.
__construct | ( | \Throwable | $error, |
Application | $application, | ||
?AbstractCommand | $command = null |
||
) |
Event constructor.
\Throwable | $error | The Throwable object with the error data. |
Application | $application | The active application. |
AbstractCommand | null | $command | The command being executed. |
Références ConsoleEvent\$application, ConsoleEvent\$command, ApplicationErrorEvent\$error, Symfony\Contracts\Service\__construct(), et ConsoleEvents\APPLICATION_ERROR.
getError | ( | ) |
getExitCode | ( | ) |
Gets the exit code.
setError | ( | \Throwable | $error | ) |
Set the error object.
\Throwable | $error | The error object to set to the event. |
Références ApplicationErrorEvent\$error.
setExitCode | ( | int | $exitCode | ) |
Sets the exit code.
integer | $exitCode | The command exit code. |
Références ApplicationErrorEvent\$exitCode, et $r.
|
private |
|
private |
Référencé par ApplicationErrorEvent\setExitCode().