ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
A Whoops error handler that delegates calls on it self to another handler that is created only in the case an error is thrown. More...
Public Member Functions | |
__construct (private readonly ilErrorHandling $error_handling, private readonly array $sensitive_data=[]) | |
handle () | |
Last missing method from HandlerInterface. More... | |
contentType () | |
This is an implicit interface method of the Whoops handlers. More... | |
Private Member Functions | |
hideSensitiveData (array $key_value_pairs) | |
Private Attributes | |
HandlerInterface | $current_handler = null |
A Whoops error handler that delegates calls on it self to another handler that is created only in the case an error is thrown.
This is necessary to make it possible to use another handler when the DEVMODE is activated. During the Init-Dance (see ilInitialisation), the error handling is initialized before the client ini file is read and the DEVMODE is determined. Thus we can't initialize a handler based on the DEVMODE and need this workaround. This class is not ment to be extended, as the definition of error handlers should be handled in one place in ilErrorHandling, so this class acts rather dump and asks ilErrorHandling for a handler.
Definition at line 35 of file class.ilDelegatingHandler.php.
ilDelegatingHandler::__construct | ( | private readonly ilErrorHandling | $error_handling, |
private readonly array | $sensitive_data = [] |
||
) |
list<string> | $sensitive_data |
Definition at line 42 of file class.ilDelegatingHandler.php.
ilDelegatingHandler::contentType | ( | ) |
This is an implicit interface method of the Whoops handlers.
Definition at line 113 of file class.ilDelegatingHandler.php.
References null.
ilDelegatingHandler::handle | ( | ) |
Last missing method from HandlerInterface.
Asks ilErrorHandling for the appropriate Handler and delegates it's tasks to that handler. PhpCastIsUnnecessaryInspection
Definition at line 86 of file class.ilDelegatingHandler.php.
References $_COOKIE, $_GET, $_SERVER, and hideSensitiveData().
|
private |
Definition at line 48 of file class.ilDelegatingHandler.php.
Referenced by handle().
|
private |
Definition at line 37 of file class.ilDelegatingHandler.php.