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();
        }
    }
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();
        }
    }
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 ( ) ; } }
Initializes the module for Web application.
Sets Podium alias (@podium) and layout.
Registers user identity, authorization, translations, formatter, db, and cache.
@throws InvalidConfigException
Initializes the module for Web application . Sets Podium alias (