/**
  * Perform extra chores on boot
  *
  * @param  Application $app
  */
 public function boot(Application $app)
 {
     // Register Monolog error handler for fatal errors here because Symfony's handler overrides it
     $monologErrorHandler = new MonologErrorHandler($app['log']);
     $monologErrorHandler->registerErrorHandler();
     $monologErrorHandler->registerFatalHandler();
 }
Example #2
0
 /**
  * Init error handler
  */
 private function _initErrorHandler()
 {
     $errorHandler = new ErrorHandler($this->app['log_factory']->getLogger('ErrorHandler'));
     $errorHandler->registerExceptionHandler();
     $errorHandler->registerErrorHandler();
     $errorHandler->registerFatalHandler();
 }