Commit 107e252a authored by tufengqi's avatar tufengqi

fix const

parent 8eaa3a37
......@@ -57,9 +57,8 @@ class YiiWeb
defined('YII_DEBUG') or define('YII_DEBUG', $this->debug);
defined('YII_ENV') or define('YII_ENV', $this->env);
define('YII_ENABLE_ERROR_HANDLER',false); //必须关闭 Yii 的错误处理器
$path = App::getAlias('@vendor/foge/yii2-swoole/Yii.php');
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER', $this->env); //必须关闭 Yii 的错误处理器
$path = App::getAlias('@vendor/foge/swoole-yii2/Yii.php');
require_once($path);
\Yii::$container = new NullContainer();
\Yii::$context = new Context();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment