File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Captcha/Controller/Refresh Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class Index implements HttpPostActionInterface
41
41
/**
42
42
* @var JsonResultFactory
43
43
*/
44
- private $ jsonFactory ;
44
+ private $ jsonResultFactory ;
45
45
46
46
/**
47
47
* @param RequestInterface $request
@@ -58,7 +58,7 @@ public function __construct(
58
58
JsonSerializer $ serializer
59
59
) {
60
60
$ this ->request = $ request ;
61
- $ this ->jsonFactory = $ jsonFactory ;
61
+ $ this ->jsonResultFactory = $ jsonFactory ;
62
62
$ this ->captchaHelper = $ captchaHelper ;
63
63
$ this ->layout = $ layout ;
64
64
$ this ->serializer = $ serializer ;
@@ -84,6 +84,6 @@ public function execute()
84
84
$ block = $ this ->layout ->createBlock ($ captchaModel ->getBlockName ());
85
85
$ block ->setFormId ($ formId )->setIsAjax (true )->toHtml ();
86
86
87
- return $ this ->jsonFactory ->create (['imgSrc ' => $ captchaModel ->getImgSrc ()]);
87
+ return $ this ->jsonResultFactory ->create (['imgSrc ' => $ captchaModel ->getImgSrc ()]);
88
88
}
89
89
}
You can’t perform that action at this time.
0 commit comments