Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 7f3808c

Browse files
committed
Added public connection property
1 parent 6789eb4 commit 7f3808c

File tree

1 file changed

+6
-0
lines changed
  • app/code/Magento/DownloadableImportExport/Helper

1 file changed

+6
-0
lines changed

app/code/Magento/DownloadableImportExport/Helper/Uploader.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
3838
*/
3939
protected $parameters = [];
4040

41+
/**
42+
* @var \Magento\Framework\DB\Adapter\AdapterInterface
43+
*/
44+
public $connection;
45+
4146
/**
4247
* Construct
4348
*
@@ -62,6 +67,7 @@ public function __construct(
6267
$this->fileUploader->init();
6368
$this->fileUploader->setAllowedExtensions($this->getAllowedExtensions());
6469
$this->fileUploader->removeValidateCallback('catalog_product_image');
70+
$this->connection = $resource->getConnection('write');
6571
$this->mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::ROOT);
6672
}
6773

0 commit comments

Comments
 (0)