[
// 错误
'error' => [
// 依赖引用
'ref' => beanname(Mix\Console\Error::class),//bean配置的名字,通过这个去取bean
],
// 日志
'log' => [
// 依赖引用
'ref' => beanname(Mix\Log\Logger::class),//bean配置的名字,通过这个去取bean
],
]
Bean::config($this->config['log']['ref'])
mix源码理解
最新推荐文章于 2023-03-13 16:39:54 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)