Пример #1
0
 public function createApplication($config, $factory)
 {
     $request = $factory->getInstance('request');
     $response = $factory->getInstance('response');
     $application = new WindCommandApplication($request, $response, $factory);
     $application->setConfig($config);
     return $application;
 }
 /**
  * 创建并返回应用
  *
  * @return WindCommandApplication
  */
 protected function _createApplication()
 {
     $application = new WindCommandApplication($this->getRequest(), $this->getFactory());
     $application->setDelayAttributes(array('windView' => array('ref' => 'windView'), 'handlerAdapter' => array('ref' => 'router')));
     return $application;
 }