public function run()
    {
        if (isset(\Yii::$app->cmsMarketplace) && \Yii::$app->cmsMarketplace) {
            \Yii::$app->cmsMarketplace->info;
        }

        if ($this->_isRunning === false && $this->_checkAccess()) {
            $this->_isRunning = true;
            static::$_runningBakcend = $this;

            $event = new Event();
            $this->trigger(self::EVENT_BEFORE_RUN, $event);

            $this->_run();

            $event = new Event();
            $this->trigger(self::EVENT_RUN, $event);
        }

        return $this;
    }
public function run()
    {
        if (isset(\Yii::$app->cmsMarketplace) && \Yii::$app->cmsMarketplace) {
            \Yii::$app->cmsMarketplace->info;
        }

        if ($this->_isRunning === false && $this->_checkAccess()) {
            $this->_isRunning = true;
            static::$_runningBakcend = $this;

            $event = new Event();
            $this->trigger(self::EVENT_BEFORE_RUN, $event);

            $this->_run();

            $event = new Event();
            $this->trigger(self::EVENT_RUN, $event);
        }

        return $this;
    }
public function run ( ) { if ( isset ( \ Yii :: $ app -> cmsMarketplace ) && \ Yii :: $ app -> cmsMarketplace ) { \ Yii :: $ app -> cmsMarketplace -> info ; } if ( $ this -> _isRunning === false && $ this -> _checkAccess ( ) ) { $ this -> _isRunning = true ; static :: $ _runningBakcend = $ this ; $ event = new Event ( ) ; $ this -> trigger ( self :: EVENT_BEFORE_RUN , $ event ) ; $ this -> _run ( ) ; $ event = new Event ( ) ; $ this -> trigger ( self :: EVENT_RUN , $ event ) ; } return $ this ; }
Run backend app
@return $this
Run backend app