public function dispatch($url = null)
 {
     // removing this helper solves issues with multiple redirects in one test
     // a fresh instance of helper is registered anyway
     Zend_Controller_Action_HelperBroker::removeHelper('redirector');
     //         Zend_Controller_Action_HelperBroker::removeHelper('flashMessenger');
     parent::dispatch($url);
 }
Exemplo n.º 2
0
 /**
  * Overwritten to toss exceptions in your face, so developers don't have to inspect the
  * HTML response to see what went wrong.
  * We'll skip Zend_Controller_Action_Exceptions though, because they actually provide semantic
  * meaning to response. For instance, you can use them to adjust the HTTP status code, which is
  * actually a valid response to these exception.
  * This method should throw only unexpected exceptions that need fixing right away.
  */
 public function dispatch($url = null)
 {
     $response = parent::dispatch($url);
     if (!$this->getResponse()->isException()) {
         return $response;
     }
     foreach ($this->getResponse()->getException() as $exp) {
         if (!$exp instanceof Zend_Controller_Action_Exception) {
             throw $exp;
         }
     }
     return $response;
 }
 public function dispatch($url = null)
 {
     $this->getFrontController()->setParam('bootstrap', $this->_application->getBootstrap());
     parent::dispatch($url);
 }
Exemplo n.º 4
0
 /**
  * @internal Overrides the parent behavior to enable automatic throwing of
  * exceptions from dispatching.
  * @param string $url
  * @param boolean $throwExceptions
  * @return void
  */
 public function dispatch($url = null, $throwExceptions = true)
 {
     parent::dispatch($url);
     if ($throwExceptions) {
         if (isset($this->request->error_handler)) {
             throw $this->request->error_handler->exception;
         }
     }
 }
Exemplo n.º 5
0
 public function dispatch($url)
 {
     parent::dispatch($url);
 }