/** * Declares external actions for the controller. * * @return array */ public function actions() { return ArrayHelper::merge(parent::actions(), ['captcha' => ['class' => 'yii\\captcha\\CaptchaAction', 'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null]]); }
public function actions() { return ArrayHelper::merge(parent::actions(), ['auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successCallback']]]); }