original_string: public function registerIdentity()
      {
          if ($this->module->userComponent !== true && !is_string($this->module->userComponent) && !is_array($this->module->userComponent)) {
              throw new InvalidConfigException('Invalid value for the userComponent parameter.');
          }
          if (is_string($this->module->userComponent)) {
              return;
          }
          $this->module->set('podium_user', is_array($this->module->userComponent)
                  ? $this->module->userComponent
                  : [
                      'class' => 'bizley\podium\web\User',
                      'identityClass' => 'bizley\podium\models\User',
                      'enableAutoLogin' => true,
                      'loginUrl' => $this->module->loginUrl,
                      'identityCookie' => [
                          'name' => 'podium',
                          'httpOnly' => true,
                          'secure' => $this->module->secureIdentityCookie,
                      ],
                      'idParam' => '__id_podium',
                  ]);
      }
code: public function registerIdentity()
      {
          if ($this->module->userComponent !== true && !is_string($this->module->userComponent) && !is_array($this->module->userComponent)) {
              throw new InvalidConfigException('Invalid value for the userComponent parameter.');
          }
          if (is_string($this->module->userComponent)) {
              return;
          }
          $this->module->set('podium_user', is_array($this->module->userComponent)
                  ? $this->module->userComponent
                  : [
                      'class' => 'bizley\podium\web\User',
                      'identityClass' => 'bizley\podium\models\User',
                      'enableAutoLogin' => true,
                      'loginUrl' => $this->module->loginUrl,
                      'identityCookie' => [
                          'name' => 'podium',
                          'httpOnly' => true,
                          'secure' => $this->module->secureIdentityCookie,
                      ],
                      'idParam' => '__id_podium',
                  ]);
      }
code_tokens: public function registerIdentity ( ) { if ( $ this -> module -> userComponent !== true && ! is_string ( $ this -> module -> userComponent ) && ! is_array ( $ this -> module -> userComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the userComponent parameter.' ) ; } if ( is_string ( $ this -> module -> userComponent ) ) { return ; } $ this -> module -> set ( 'podium_user' , is_array ( $ this -> module -> userComponent ) ? $ this -> module -> userComponent : [ 'class' => 'bizley\podium\web\User' , 'identityClass' => 'bizley\podium\models\User' , 'enableAutoLogin' => true , 'loginUrl' => $ this -> module -> loginUrl , 'identityCookie' => [ 'name' => 'podium' , 'httpOnly' => true , 'secure' => $ this -> module -> secureIdentityCookie , ] , 'idParam' => '__id_podium' , ] ) ; }
docstring: Registers user identity.
  @throws InvalidConfigException
docstring_tokens: Registers user identity .