registerErrorHandler() protected method

Registers the errorHandler component as a PHP error handler.
protected registerErrorHandler ( array &$config )
$config array application config
Example #1
0
 /**
  * Registers the errorHandler component as a PHP error handler.
  */
 protected function registerErrorHandler(&$config)
 {
     if (!isset($config['components']['errorHandler']['class'])) {
         $config['components']['errorHandler']['class'] = 'yii\\web\\ErrorHandler';
     }
     parent::registerErrorHandler($config);
 }