yii\captcha\CaptchaAction::init PHP Method

init() public method

Initializes the action.
public init ( )
    public function init()
    {
        $this->fontFile = Yii::getAlias($this->fontFile);
        if (!is_file($this->fontFile)) {
            throw new InvalidConfigException("The font file does not exist: {$this->fontFile}");
        }
    }