public function handle() { $inputResponse = $this->_client->handleInteractiveInputRequest($this->_inputRequest); if (is_string($inputResponse)) { $inputResponse = new Zend_Tool_Framework_Client_Interactive_InputResponse($inputResponse); } elseif (!$inputResponse instanceof Zend_Tool_Framework_Client_Interactive_InputResponse) { throw new Zend_Tool_Framework_Client_Exception('The registered $_interactiveCallback for the client must either return a string or an instance of Zend_Tool_Framework_Client_Interactive_InputResponse.'); } return $inputResponse; }
public function handle() { $inputResponse = $this->_client->handleInteractiveInputRequest($this->_inputRequest); if (is_string($inputResponse)) { require_once PHP_LIBRARY_PATH . 'Zend/Tool/Framework/Client/Interactive/InputResponse.php'; $inputResponse = new Zend_Tool_Framework_Client_Interactive_InputResponse($inputResponse); } elseif (!$inputResponse instanceof Zend_Tool_Framework_Client_Interactive_InputResponse) { require_once PHP_LIBRARY_PATH . 'Zend/Tool/Framework/Client/Exception.php'; throw new Zend_Tool_Framework_Client_Exception('The registered $_interactiveCallback for the client must either return a string or an instance of Zend_Tool_Framework_Client_Interactive_InputResponse.'); } return $inputResponse; }