/** * 从一个配置对象启动项目 * * @param DataMap $config * 配置对象 * @return void */ public static function initFormConfig(DataMap $config) { if (self::$app !== null) { return; } $app = new self($config); /*设置时区*/ date_default_timezone_set($app->getAppConfig()->get('time_zone')); self::$app = $app; $app->startApp(); }