/** * Handle for any other errors * * @param Bootstrap $bootstrap * @param \Exception $exception * @return bool */ private function handleGenericReport(Bootstrap $bootstrap, \Exception $exception) { $reportData = array($exception->getMessage(), $exception->getTraceAsString()); $params = $bootstrap->getParams(); if (isset($params['REQUEST_URI'])) { $reportData['url'] = $params['REQUEST_URI']; } if (isset($params['SCRIPT_NAME'])) { $reportData['script_name'] = $params['SCRIPT_NAME']; } require $this->_filesystem->getPath(Filesystem::PUB_DIR) . '/errors/report.php'; return true; }
/** * Handle for any other errors * * @param Bootstrap $bootstrap * @param \Exception $exception * @return bool */ private function handleGenericReport(Bootstrap $bootstrap, \Exception $exception) { $reportData = [$exception->getMessage(), $exception->getTraceAsString()]; $params = $bootstrap->getParams(); if (isset($params['REQUEST_URI'])) { $reportData['url'] = $params['REQUEST_URI']; } if (isset($params['SCRIPT_NAME'])) { $reportData['script_name'] = $params['SCRIPT_NAME']; } require $this->_filesystem->getDirectoryRead(DirectoryList::PUB)->getAbsolutePath('errors/report.php'); return true; }