public function registerAuthorization()
    {
        if ($this->module->rbacComponent !== true && !is_string($this->module->rbacComponent) && !is_array($this->module->rbacComponent)) {
            throw new InvalidConfigException('Invalid value for the rbacComponent parameter.');
        }
        if (is_string($this->module->rbacComponent)) {
            return;
        }
        $this->module->set('podium_rbac', is_array($this->module->rbacComponent)
                ? $this->module->rbacComponent
                : [
                    'class' => 'yii\rbac\DbManager',
                    'db' => $this->module->db,
                    'itemTable' => '{{%podium_auth_item}}',
                    'itemChildTable' => '{{%podium_auth_item_child}}',
                    'assignmentTable' => '{{%podium_auth_assignment}}',
                    'ruleTable' => '{{%podium_auth_rule}}',
                    'cache' => $this->module->cache
                ]);
    }
public function registerAuthorization()
    {
        if ($this->module->rbacComponent !== true && !is_string($this->module->rbacComponent) && !is_array($this->module->rbacComponent)) {
            throw new InvalidConfigException('Invalid value for the rbacComponent parameter.');
        }
        if (is_string($this->module->rbacComponent)) {
            return;
        }
        $this->module->set('podium_rbac', is_array($this->module->rbacComponent)
                ? $this->module->rbacComponent
                : [
                    'class' => 'yii\rbac\DbManager',
                    'db' => $this->module->db,
                    'itemTable' => '{{%podium_auth_item}}',
                    'itemChildTable' => '{{%podium_auth_item_child}}',
                    'assignmentTable' => '{{%podium_auth_assignment}}',
                    'ruleTable' => '{{%podium_auth_rule}}',
                    'cache' => $this->module->cache
                ]);
    }
public function registerAuthorization ( ) { if ( $ this -> module -> rbacComponent !== true && ! is_string ( $ this -> module -> rbacComponent ) && ! is_array ( $ this -> module -> rbacComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the rbacComponent parameter.' ) ; } if ( is_string ( $ this -> module -> rbacComponent ) ) { return ; } $ this -> module -> set ( 'podium_rbac' , is_array ( $ this -> module -> rbacComponent ) ? $ this -> module -> rbacComponent : [ 'class' => 'yii\rbac\DbManager' , 'db' => $ this -> module -> db , 'itemTable' => '{{%podium_auth_item}}' , 'itemChildTable' => '{{%podium_auth_item_child}}' , 'assignmentTable' => '{{%podium_auth_assignment}}' , 'ruleTable' => '{{%podium_auth_rule}}' , 'cache' => $ this -> module -> cache ] ) ; }
Registers user authorization.
@throws InvalidConfigException
Registers user authorization .