Пример #1
0
 public function __construct()
 {
     self::$request = new Request();
     self::$response = new Response();
     self::$session = new Session();
     $requestInfo = self::$request->parse();
     $response = Manager::runModule($requestInfo);
     self::$response->send($response);
 }
Пример #2
0
 /**
  * @param string $name
  * @return string
  */
 private static function viewPath($name)
 {
     return ROOT . 'api/' . Manager::getModule() . '/View/' . $name . '.php';
 }