As it is described here I'm trying to do the migration in order to let yii create the user authentication tables. However I get the error:
Exception 'yii\base\InvalidConfigException' with message 'You should configure "authManager" component to use database before executing this migration.'
The authManager is present in the configuration but I still get that error. Configuration:
'components' => [
...
'db' => $db,
'authManager' => [
'class' => 'yii\rbac\DbManager',
// 'defaultRoles' => ['guest'],
],
...
],
What's the problem?