正如
here所述,我试图进行迁移,以便让yii创建用户身份验证表.但是我收到错误:
原文链接:https://www.f2er.com/php/131339.htmlException ‘yii\base\InvalidConfigException’ with message ‘You should
configure “authManager” component to use database before executing
this migration.’
authManager存在于配置中,但我仍然收到该错误.组态:
'components' => [ ... 'db' => $db,'authManager' => [ 'class' => 'yii\rbac\DbManager',// 'defaultRoles' => ['guest'],],... ],
有什么问题?