/** * {@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; }
/** * {@inheritdoc} */ public function setBody($value) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setBody'); if (!$pluginInfo) { return parent::setBody($value); } else { return $this->___callPlugins('setBody', func_get_args(), $pluginInfo); } }