Skip to content

Commit 8e1098d

Browse files
committed
MAGETWO-87577: Build Stabilization
Remove backwards-incompatible change of having $imagesHelper be dependency-injected
1 parent b9b1066 commit 8e1098d

File tree

1 file changed

+2
-9
lines changed
  • app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images

1 file changed

+2
-9
lines changed

app/code/Magento/Cms/Controller/Adminhtml/Wysiwyg/Images/OnInsert.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ class OnInsert extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
1313
*/
1414
protected $resultRawFactory;
1515

16-
/**
17-
* @var \Magento\Cms\Helper\Wysiwyg\Images
18-
*/
19-
protected $imagesHelper;
20-
2116
/**
2217
* @param \Magento\Backend\App\Action\Context $context
2318
* @param \Magento\Framework\Registry $coreRegistry
@@ -26,11 +21,9 @@ class OnInsert extends \Magento\Cms\Controller\Adminhtml\Wysiwyg\Images
2621
public function __construct(
2722
\Magento\Backend\App\Action\Context $context,
2823
\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
3125
) {
3226
$this->resultRawFactory = $resultRawFactory;
33-
$this->imagesHelper = $imagesHelper;
3427
parent::__construct($context, $coreRegistry);
3528
}
3629

@@ -41,7 +34,7 @@ public function __construct(
4134
*/
4235
public function execute()
4336
{
44-
$imagesHelper = $this->imagesHelper;
37+
$imagesHelper = $this->_objectManager->get(\Magento\Cms\Helper\Wysiwyg\Images::class);
4538
$request = $this->getRequest();
4639

4740
$storeId = $request->getParam('store');

0 commit comments

Comments
 (0)