init
This commit is contained in:
41
vendor/yii2mod/yii2-rbac/Module.php
vendored
Normal file
41
vendor/yii2mod/yii2-rbac/Module.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace yii2mod\rbac;
|
||||
|
||||
/**
|
||||
* GUI manager for RBAC.
|
||||
*
|
||||
* Use [[\yii\base\Module::$controllerMap]] to change property of controller.
|
||||
*
|
||||
* ```php
|
||||
* 'controllerMap' => [
|
||||
* 'assignment' => [
|
||||
* 'class' => 'yii2mod\rbac\controllers\AssignmentController',
|
||||
* 'userIdentityClass' => 'app\models\User',
|
||||
* 'searchClass' => [
|
||||
* 'class' => 'yii2mod\rbac\models\search\AssignmentSearch',
|
||||
* 'pageSize' => 10,
|
||||
* ],
|
||||
* 'idField' => 'id',
|
||||
* 'usernameField' => 'username'
|
||||
* 'gridViewColumns' => [
|
||||
* 'id',
|
||||
* 'username',
|
||||
* 'email'
|
||||
* ],
|
||||
* ],
|
||||
* ],
|
||||
* ```php
|
||||
*/
|
||||
class Module extends \yii\base\Module
|
||||
{
|
||||
/**
|
||||
* @var string the default route of this module. Defaults to 'default'
|
||||
*/
|
||||
public $defaultRoute = 'assignment';
|
||||
|
||||
/**
|
||||
* @var string the namespace that controller classes are in
|
||||
*/
|
||||
public $controllerNamespace = 'yii2mod\rbac\controllers';
|
||||
}
|
||||
Reference in New Issue
Block a user