robregonm / yii2-auth

Yii 2 User Authentication & Role Based Access Control (RBAC) Module
BSD 3-Clause "New" or "Revised" License
77 stars 37 forks source link

in migration file => create rbac table #7

Closed prawee closed 10 years ago

prawee commented 10 years ago

you should be use $authManager = Yii::$app->getComponent('authManager'); instead $authManager = Yii::$app->get('authManager');

robregonm commented 10 years ago

This is not bug, since "getComponent" is not valid function to get a component. Please take a look at: http://www.yiiframework.com/doc-2.0/yii-di-servicelocator.html#get()-detail