/** * @param IWindRequest $request * @param IWindResponse $response * @param WindFactory $factory * @return WindFrontController */ public static function application($appName = '', $config = array(), $type = 'Web') { if (self::$_frontController === null) { $_className = 'Wind' . $type . 'FrontController'; self::$_classes[$_className] = strtolower($type) . '/Wind' . $type . 'FrontController'; self::$_frontController = new $_className($appName, $config); } return self::$_frontController; }