mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Renamed fatal error handler configuration for follow the same logic of consoleHandler name.
This commit is contained in:
parent
eeec217992
commit
05cdae6d1a
3 changed files with 7 additions and 7 deletions
|
@ -41,8 +41,8 @@
|
|||
*
|
||||
* Options:
|
||||
*
|
||||
* - `handleFatalError` - callback - The callback to handle fatal errors. You can set this to any
|
||||
* callback type, including anonymous functions.
|
||||
* - `fatalErrorHandler` - callback - The callback to handle fatal errors. You can set this to any
|
||||
* callback type, including anonymous functions. Setting it to false will disable the feature.
|
||||
* - `handler` - callback - The callback to handle errors. You can set this to any callback type,
|
||||
* including anonymous functions.
|
||||
* - `level` - int - The level of errors you are interested in capturing.
|
||||
|
@ -51,7 +51,7 @@
|
|||
* @see ErrorHandler for more information on error handling and configuration.
|
||||
*/
|
||||
Configure::write('Error', array(
|
||||
'handleFatalError' => 'ErrorHandler::handleFatalError',
|
||||
'fatalErrorHandler' => 'ErrorHandler::handleFatalError',
|
||||
'handler' => 'ErrorHandler::handleError',
|
||||
'level' => E_ALL & ~E_DEPRECATED,
|
||||
'trace' => true
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
*
|
||||
* Options:
|
||||
*
|
||||
* - `handleFatalError` - callback - The callback to handle fatal errors. You can set this to any
|
||||
* callback type, including anonymous functions.
|
||||
* - `fatalErrorHandler` - callback - The callback to handle fatal errors. You can set this to any
|
||||
* callback type, including anonymous functions. Setting it to false will disable the feature.
|
||||
* - `handler` - callback - The callback to handle errors. You can set this to any callback type,
|
||||
* including anonymous functions.
|
||||
* - `level` - int - The level of errors you are interested in capturing.
|
||||
|
@ -51,7 +51,7 @@
|
|||
* @see ErrorHandler for more information on error handling and configuration.
|
||||
*/
|
||||
Configure::write('Error', array(
|
||||
'handleFatalError' => 'ErrorHandler::handleFatalError',
|
||||
'fatalErrorHandler' => 'ErrorHandler::handleFatalError',
|
||||
'handler' => 'ErrorHandler::handleError',
|
||||
'level' => E_ALL & ~E_DEPRECATED,
|
||||
'trace' => true
|
||||
|
|
|
@ -913,7 +913,7 @@ class App {
|
|||
return;
|
||||
}
|
||||
|
||||
$fatalErrorHandler = Configure::read('Error.handleFatalError');
|
||||
$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
|
||||
if (!is_callable($fatalErrorHandler)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue