ILIAS
release_8 Revision v8.19
|
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 (ilErrorHandling $error_handling) | |
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 | |
ilErrorHandling | $error_handling |
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 | ( | ilErrorHandling | $error_handling | ) |
Definition at line 40 of file class.ilDelegatingHandler.php.
References $error_handling.
ilDelegatingHandler::contentType | ( | ) |
This is an implicit interface method of the Whoops handlers.
Definition at line 110 of file class.ilDelegatingHandler.php.
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 83 of file class.ilDelegatingHandler.php.
References $_COOKIE, $_GET, $_SERVER, and hideSensitiveData().
|
private |
Definition at line 45 of file class.ilDelegatingHandler.php.
References ILIAS\LTI\ToolProvider\$key.
Referenced by handle().
|
private |
Definition at line 38 of file class.ilDelegatingHandler.php.
|
private |
Definition at line 37 of file class.ilDelegatingHandler.php.
Referenced by __construct().