yii\captcha\CaptchaValidator::createCaptchaAction PHP 메소드

createCaptchaAction() 공개 메소드

Creates the CAPTCHA action object from the route specified by [[captchaAction]].
public createCaptchaAction ( ) : CaptchaAction
리턴 CaptchaAction the action object
    public function createCaptchaAction()
    {
        $ca = Yii::$app->createController($this->captchaAction);
        if ($ca !== false) {
            /* @var $controller \yii\base\Controller */
            list($controller, $actionID) = $ca;
            $action = $controller->createAction($actionID);
            if ($action !== null) {
                return $action;
            }
        }
        throw new InvalidConfigException('Invalid CAPTCHA action ID: ' . $this->captchaAction);
    }