public function execute() { if (!$this->isExecutable()) { throw new Zend_Tool_Exception('Not executable'); } // reset short cicuits $this->_globalContext->setShortCircuited(false); $this->_actionContext->setShortCircuited(false); // execute global context $this->_globalContext->execute(); if ($this->_globalContext->isShortCircuited()) { return; } // execution action context $this->_actionContext->execute(); if ($this->_actionContext->isShortCircuited()) { return; } // execute resource context with action context $this->_resourceContext->execute($this->_actionContext); }
public function execute(Zend_Tool_Cli_Context_Action $actionContext) { $this->_resource->execute($actionContext->getAction()->getName()); }