代码拉取完成,页面将自动刷新
同步操作将从 青衫Hayward/yii2demo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
if (is_file(__DIR__ . '/.env')) {
(new \Dotenv\Dotenv(__DIR__))->load();
}
defined('YII_DEBUG') or define('YII_DEBUG', env('YII_DEBUG'));
defined('YII_ENV') or define('YII_ENV', env('YII_ENV', 'prod'));
class Yii extends \yii\BaseYii
{
/**
* @var \install\Application|BaseApplication|WebApplication|ConsoleApplication the application instance
*/
public static $app;
public static function getVersion()
{
return '1.0.0';
}
public static function powered()
{
return parent::powered() . ' & <a href="http://www.51siyuan.cn/" rel="external">Yii2 CMF</a>';
}
}
spl_autoload_register(['Yii', 'autoload'], true, true);
Yii::$classMap = require(__DIR__ . '/vendor/yiisoft/yii2/classes.php');
Yii::$container = new yii\di\Container();
function checkInstalled()
{
return file_exists(Yii::getAlias('@root/web/storage/install.txt'));
}
//IDE友好
/**
* Class BaseApplication
* Used for properties that are identical for both WebApplication and ConsoleApplication
* @property \common\modules\config\components\Config $config
* @property \common\modules\attachment\components\Storage $storage
* @property \common\components\notify\Handler $notify
*/
abstract class BaseApplication extends yii\base\Application
{
}
/**
* Class WebApplication
* Include only Web application related components here
* @property \frontend\components\Search $search
* @property \common\components\PluginManager $pluginManager
* @property \common\components\ModuleManager $moduleManager
* @property \common\components\ThemeManager $themeManager
* @property User $user
*/
class WebApplication extends yii\web\Application
{
}
/**
* Class ConsoleApplication
* Include only Console application related components here
*
*/
class ConsoleApplication extends yii\console\Application
{
}
/**
* Class User
* @property \common\modules\user\models\User $identity
*/
class User
{
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。