skeeks\cms\console\controllers\MigrateController::beforeAction PHP Method

beforeAction() public method

This method is invoked right before an action is to be executed (after all possible filters.) It checks the existence of the [[migrationPath]].
public beforeAction ( Action $action ) : boolean
$action yii\base\Action the action to be executed.
return boolean whether the action should continue to be executed.
    public function beforeAction($action)
    {
        $this->migrationPath = \Yii::getAlias($this->_runtimeMigrationPath);
        $this->_copyMigrations();
        return parent::beforeAction($action);
    }