/**
  * @param array $conf
  */
 private static function setupErrorHandling(array $conf)
 {
     if ($conf['environment'] == 'testing') {
         error_reporting(E_ALL | E_STRICT);
     } else {
         set_exception_handler(function ($exception) {
             Error::exception($exception);
         });
         set_error_handler(function ($code, $error, $file, $line) {
             Error::native($code, $error, $file, $line);
         });
         register_shutdown_function(function () {
             Error::shutdown();
         });
         error_reporting(-1);
     }
 }
 /**
  * @param string $environment
  */
 private static function setupErrorHandling($environment)
 {
     if ($environment == 'testing') {
         error_reporting(E_ALL | E_STRICT);
     } else {
         $logger = self::$logger;
         set_exception_handler(function ($exception) use($logger) {
             Error::exception($exception, $logger);
         });
         set_error_handler(function ($code, $error, $file, $line) use($logger) {
             Error::native($code, $error, $file, $line, $logger, error_reporting());
         });
         register_shutdown_function(function () use($logger) {
             Error::shutdown($logger, error_get_last());
         });
         error_reporting(-1);
     }
 }