yii2-usuario
yii2-usuario copied to clipboard
Authentication rule class yii\rbac\Rule can not be instantiated
What steps will reproduce the problem?
My backend config:
My Error:
Why is happen ?
@MixMe this problem still appears?
Have you migrate :
./yii migrate --migrationPath=@yii/rbac/migrations
@demonking I have the same problem, all migrations are completed
@mreuro can you provide your steps ?
@demonking did everything according to this instruction https://yii2-usuario.readthedocs.io
that's what I have in the config:


yii\rbac\Rules is a abstract class...
@MixMe I know, not blind. The question is how to make this thing work and which class to use
@MixMe I know, not blind. The question is how to make this thing work and which class to use
I have the same question, but it doesn't seem any help here :(
@MixMe @mreuro I am very sorry for not being able to respond quickly. Workload is quite heavy for me these days.
- if you use
rbacdon't set theadministrators - if you wish to create rules, you must follow the yii2 guidelines: https://www.yiiframework.com/doc/guide/2.0/en/security-authorization#using-rules. That is, you have to create your own rule extending from the
yii2\rbac\Rule, which is an abstract class, and then add that rule on the UI adding the new class including the namespace on the box.
I too have the same same problem.