S
S
Shua0972017-04-02 15:25:42
Yii
Shua097, 2017-04-02 15:25:42

Yii2 RBAC setup from dektrium, why does the migration fail?

Tell me where I'm stupid .. Migration stubbornly
fails

Exception 'yii\base\InvalidConfigException' with message 'You should configure "authManager" component to use database before executing this migration.'

In web.php:
'components' => [
...
        'authManager' => [
            'class' => 'dektrium\rbac\components\DbManager',
        ],
]
'modules' => [
        'user' => [
            'class' => 'dektrium\user\Module',
            'admins' => ['Admin']
        ],
        'rbac' => [
            'class'=>'dektrium\rbac\RbacWebModule',
        ],
    ],

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
padlyuck, 2017-04-02
@Shua097

you need to configure the authManager for the console. you run the migration from the console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question