at('images/favicon.ico'); exit(0); } header('Content-Type: text/html; charset=utf-8'); $application->handleRequest($_SERVER['REQUEST_URI']); if (AppGlobal::logRequests() && !(StringUtils::startsWith($_SERVER['REQUEST_URI'], '/assets') || StringUtils::startsWith($_SERVER['REQUEST_URI'], '/photo'))) { $stopWatch->stop('URI:'); } } catch (Exception $e) { $logger->warn(ErrorFormatter::toExceptionString($e)); $html = ErrorHandler::handleException($e, $isAjax); $env = AppGlobal::getAppEnv(); if($env != 'local') { $mailer = AppGlobal::emailSenderInstance(); $appName = AppGlobal::getAppName(); $to = AppGlobal::getIncidentMailRecipients(); $mailer->sendHtmlMail('noreply@dublin-it.ch', $to, 'Exception in ' . $appName, $html); } }