Exemple #1
0
 /**
  * _preDispatch() - Tasks handed after initialization but before dispatching
  *
  */
 protected function _preDispatch()
 {
     $response = $this->_registry->getResponse();
     $response->addContentDecorator(new ResponseDecorator\AlignCenter());
     $response->addContentDecorator(new ResponseDecorator\Indention());
     $response->addContentDecorator(new ResponseDecorator\Blockize());
     if (function_exists('posix_isatty')) {
         $response->addContentDecorator(new ResponseDecorator\Colorizer());
     }
     $response->addContentDecorator(new \Zend\Tool\Framework\Client\Response\ContentDecorator\Separator())->setDefaultDecoratorOptions(array('separator' => true));
     $optParser = new ArgumentParser();
     $optParser->setArguments($_SERVER['argv'])->setRegistry($this->_registry)->parse();
     return;
 }