public function actionDisable()
    {
        $maintenance = Yii::$app->maintenanceMode;

        if ($maintenance->getIsEnabled(true) && $maintenance->disable()) {
            $this->stdout("Maintenance mode disabled successfully.\n", Console::FG_GREEN);
            return Controller::EXIT_CODE_NORMAL;
        } else {
            $this->stdout("Maintenance mode already disabled.\n", Console::FG_RED);
            return Controller::EXIT_CODE_ERROR;
        }
    }
public function actionDisable()
    {
        $maintenance = Yii::$app->maintenanceMode;

        if ($maintenance->getIsEnabled(true) && $maintenance->disable()) {
            $this->stdout("Maintenance mode disabled successfully.\n", Console::FG_GREEN);
            return Controller::EXIT_CODE_NORMAL;
        } else {
            $this->stdout("Maintenance mode already disabled.\n", Console::FG_RED);
            return Controller::EXIT_CODE_ERROR;
        }
    }
public function actionDisable ( ) { $ maintenance = Yii :: $ app -> maintenanceMode ; if ( $ maintenance -> getIsEnabled ( true ) && $ maintenance -> disable ( ) ) { $ this -> stdout ( "Maintenance mode disabled successfully.\n" , Console :: FG_GREEN ) ; return Controller :: EXIT_CODE_NORMAL ; } else { $ this -> stdout ( "Maintenance mode already disabled.\n" , Console :: FG_RED ) ; return Controller :: EXIT_CODE_ERROR ; } }
Disable maintenance mode.
@since 0.2.2
@return int
Disable maintenance mode .