42 lines
1020 B
PHP
42 lines
1020 B
PHP
<?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';
|
|
}
|