Exemplo n.º 1
0
 /**
  * Copies an exception found in the response of the initial request
  * into the responses of teh requests found in the requestStack.
  *
  *
  * @param Zend_Controller_Response_Abstract $response
  */
 protected function _mergeInitException(Zend_Controller_Response_Abstract $response)
 {
     /**
      * @see Conjoon_Controller_DispatchHelper
      */
     require_once 'Conjoon/Controller/DispatchHelper.php';
     $result = Conjoon_Controller_DispatchHelper::mergeExceptions($response->getException());
     $response->clearBody();
     $response->setBody(Zend_Json::encode($result));
 }