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); }
/** * @param string $name * @return string */ private static function viewPath($name) { return ROOT . 'api/' . Manager::getModule() . '/View/' . $name . '.php'; }