Renamed fatal error handler configuration for follow the same logic of consoleHandler name.

This commit is contained in:
Juan Basso 2012-03-31 20:10:38 -04:00
parent eeec217992
commit 05cdae6d1a
3 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -913,7 +913,7 @@ class App {
return;
}
$fatalErrorHandler = Configure::read('Error.handleFatalError');
$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
if (!is_callable($fatalErrorHandler)) {
return;
}