/** * {@inheritdoc} */ public function sendResponse() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'sendResponse'); if (!$pluginInfo) { return parent::sendResponse(); } else { return $this->___callPlugins('sendResponse', func_get_args(), $pluginInfo); } }
/** * {@inheritdoc} */ public function catchException(App\Bootstrap $bootstrap, \Exception $exception) { $this->response->setHttpResponseCode(404); if ($bootstrap->isDeveloperMode()) { $this->response->setHeader('Content-Type', 'text/plain'); $this->response->setBody($exception->getMessage() . "\n" . $exception->getTraceAsString()); } $this->response->sendResponse(); return true; }