Setting read-only property: yii\web\Application::log 配置放在了 components 外面,应该放在里面 转载于:https://www.cnblogs.com/china-flint/p/10191833.html