-
Notifications
You must be signed in to change notification settings - Fork 0
/
Yii.php
23 lines (20 loc) · 641 Bytes
/
Yii.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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
{
public static function getVersion()
{
return '0.1.0';
}
public static function powered()
{
return 'Powered by ' . '<a href="http:https://cms.51siyuan.cn/" rel="external">Yuan CMS</a>';
}
}
spl_autoload_register(['Yii', 'autoload'], true, true);
Yii::$classMap = require(__DIR__ . '/vendor/yiisoft/yii2/classes.php');
Yii::$container = new yii\di\Container();