@@ -13,11 +13,6 @@ class OnInsert extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
13
13
*/
14
14
protected $ resultRawFactory ;
15
15
16
- /**
17
- * @var \Magento\Cms\Helper\Wysiwyg\Images
18
- */
19
- protected $ imagesHelper ;
20
-
21
16
/**
22
17
* @param \Magento\Backend\App\Action\Context $context
23
18
* @param \Magento\Framework\Registry $coreRegistry
@@ -26,11 +21,9 @@ class OnInsert extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
26
21
public function __construct (
27
22
\Magento \Backend \App \Action \Context $ context ,
28
23
\Magento \Framework \Registry $ coreRegistry ,
29
- \Magento \Framework \Controller \Result \RawFactory $ resultRawFactory ,
30
- \Magento \Cms \Helper \Wysiwyg \Images $ imagesHelper
24
+ \Magento \Framework \Controller \Result \RawFactory $ resultRawFactory
31
25
) {
32
26
$ this ->resultRawFactory = $ resultRawFactory ;
33
- $ this ->imagesHelper = $ imagesHelper ;
34
27
parent ::__construct ($ context , $ coreRegistry );
35
28
}
36
29
@@ -41,7 +34,7 @@ public function __construct(
41
34
*/
42
35
public function execute ()
43
36
{
44
- $ imagesHelper = $ this ->imagesHelper ;
37
+ $ imagesHelper = $ this ->_objectManager -> get (\ Magento \ Cms \ Helper \ Wysiwyg \Images::class) ;
45
38
$ request = $ this ->getRequest ();
46
39
47
40
$ storeId = $ request ->getParam ('store ' );
0 commit comments