original_string: 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
                  ]);
      }
code: 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
                  ]);
      }
code_tokens: 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 ] ) ; }
docstring: Registers user authorization.
  @throws InvalidConfigException
docstring_tokens: Registers user authorization .