Skip to content

Commit

Permalink
Renamed fatal error handler configuration for follow the same logic o…
Browse files Browse the repository at this point in the history
…f consoleHandler name.
  • Loading branch information
jrbasso committed Apr 14, 2012
1 parent eeec217 commit 05cdae6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/Config/core.php
Expand Up @@ -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.
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Console/Templates/skel/Config/core.php
Expand Up @@ -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.
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Core/App.php
Expand Up @@ -913,7 +913,7 @@ protected static function _checkFatalError() {
return;
}

$fatalErrorHandler = Configure::read('Error.handleFatalError');
$fatalErrorHandler = Configure::read('Error.fatalErrorHandler');
if (!is_callable($fatalErrorHandler)) {
return;
}
Expand Down

0 comments on commit 05cdae6

Please sign in to comment.