34 parent::__construct($context);
44 $formId = $this->
getRequest()->getPost(
'formId');
45 $captchaModel = $this->captchaHelper->getCaptcha($formId);
46 $this->_view->getLayout()->createBlock(
47 $captchaModel->getBlockName()
53 $this->
getResponse()->representJson($this->serializer->serialize([
'imgSrc' => $captchaModel->getImgSrc()]));
54 $this->_actionFlag->set(
'', self::FLAG_NO_POST_DISPATCH,
true);
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Captcha\Helper\Data $captchaHelper, \Magento\Framework\Serialize\Serializer\Json $serializer)