-
Notifications
You must be signed in to change notification settings - Fork 57
/
Module.php
executable file
·41 lines (38 loc) · 1020 Bytes
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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';
}