Example #1
0
 /**
  * Точка запуска приложения
  */
 public function run()
 {
     if ($this->_runIn == App::RUN_IN_WEB) {
         $url = parse_url($_SERVER["REQUEST_URI"]);
         $path = $url['path'];
         $this->_router->runAction($path);
     }
     if ($this->_runIn == App::RUN_IN_CONSOLE) {
         $this->_console->setArgs($this->_args);
         $this->_console->run();
     }
     echo $this->getResponse();
 }