Example #1
0
 /**
  * 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]]);
 }
Example #2
0
 public function actions()
 {
     return ArrayHelper::merge(parent::actions(), ['auth' => ['class' => 'yii\\authclient\\AuthAction', 'successCallback' => [$this, 'successCallback']]]);
 }