/** * 设定当前的application * * @access public * @param App $app * @return void */ public static function setApp($app) { if (self::$_app === null || $app === null) { self::$_app = $app; } }