Я сделал так как в документации и добавил в console/config/main.php код
'components' => [
'authMeneger' => [
'class' => 'yii\rbac\DbManager',
],
'log' => [
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
],
Но у меня выдает ошибку
C:\OpenServer\domains\hostTraining>yii migrate --migrationPath=@yii/rbac/migrations
Yii Migration Tool (based on Yii v2.0.13.1)
Total 2 new migrations to be applied:
m140506_102106_rbac_init
m170907_052038_rbac_add_index_on_auth_assignment_user_id
Apply the above migrations? (yes|no) [no]:yes
*** applying m140506_102106_rbac_init
Exception 'yii\base\InvalidConfigException' with message 'You should configure "authManager" component to use database before executing this migration.'
in C:\OpenServer\domains\hostTraining\vendor\yiisoft\yii2\rbac\migrations\m140506_102106_rbac_init.php:27
Как избавиться от этой проблемы?