bubasuma\simplechat\console\DefaultController::beforeAction PHP Method

beforeAction() public method

public beforeAction ( $action )
    public function beforeAction($action)
    {
        if (parent::beforeAction($action)) {
            $this->module->controllerMap['migrate'] = ['class' => MigrateController::className(), 'interactive' => $this->interactive];
            $this->module->controllerMap['fixture'] = ['class' => FixtureController::className(), 'interactive' => $this->interactive, 'language' => $this->language];
            $this->stdout("Yii2 SimpleChat Demo\n\n", Console::BOLD);
            return true;
        } else {
            return false;
        }
    }