added RBAC

This commit is contained in:
Antonio Ramirez
2016-12-14 02:26:02 +01:00
parent 9409da4c89
commit 9f1a60b542
43 changed files with 1625 additions and 245 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace Da\User\Traits;
use Da\User\Component\AuthDbManagerComponent;
use Yii;
trait AuthManagerTrait
{
/**
* @return AuthDbManagerComponent|\yii\rbac\ManagerInterface
*/
public function getAuthManager() {
return Yii::$app->getAuthManager();
}
}