Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function catchException(App\Bootstrap $bootstrap, \Exception $exception)
 {
     $this->_response->setHttpResponseCode(404);
     $this->_response->sendHeaders();
     return true;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function sendHeaders()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'sendHeaders');
     if (!$pluginInfo) {
         return parent::sendHeaders();
     } else {
         return $this->___callPlugins('sendHeaders', func_get_args(), $pluginInfo);
     }
 }