original_string: public function init()
      {
          parent::init();
          $this->setAliases(['@podium' => '@vendor/bizley/podium/src']);
          if (Yii::$app instanceof WebApplication) {
              $this->podiumComponent->registerComponents();
              $this->layout = 'main';
              if (!is_string($this->slugGenerator)) {
                  $this->slugGenerator = PodiumSluggableBehavior::className();
              }
          } else {
              $this->podiumComponent->registerConsoleComponents();
          }
      }
code: public function init()
      {
          parent::init();
          $this->setAliases(['@podium' => '@vendor/bizley/podium/src']);
          if (Yii::$app instanceof WebApplication) {
              $this->podiumComponent->registerComponents();
              $this->layout = 'main';
              if (!is_string($this->slugGenerator)) {
                  $this->slugGenerator = PodiumSluggableBehavior::className();
              }
          } else {
              $this->podiumComponent->registerConsoleComponents();
          }
      }
code_tokens: public function init ( ) { parent :: init ( ) ; $ this -> setAliases ( [ '@podium' => '@vendor/bizley/podium/src' ] ) ; if ( Yii :: $ app instanceof WebApplication ) { $ this -> podiumComponent -> registerComponents ( ) ; $ this -> layout = 'main' ; if ( ! is_string ( $ this -> slugGenerator ) ) { $ this -> slugGenerator = PodiumSluggableBehavior :: className ( ) ; } } else { $ this -> podiumComponent -> registerConsoleComponents ( ) ; } }
docstring: Initializes the module for Web application.
  Sets Podium alias (@podium) and layout.
  Registers user identity, authorization, translations, formatter, db, and cache.
  @throws InvalidConfigException
docstring_tokens: Initializes the module for Web application . Sets Podium alias (