added RBAC
This commit is contained in:
29
lib/User/Contracts/AuthManagerInterface.php
Normal file
29
lib/User/Contracts/AuthManagerInterface.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace Da\User\Contracts;
|
||||
|
||||
use yii\rbac\ManagerInterface;
|
||||
|
||||
interface AuthManagerInterface extends ManagerInterface
|
||||
{
|
||||
/**
|
||||
* @param integer|null $type
|
||||
* @param array $excludeItems
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItems($type = null, $excludeItems = []);
|
||||
|
||||
/**
|
||||
* @param integer $userId
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItemsByUser($userId);
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getItem($name);
|
||||
}
|
||||
Reference in New Issue
Block a user