get module instance via module property of Controller
replace Yii::$app->getModule('oauth2') with $this->module