Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Added public connection property
Browse files Browse the repository at this point in the history
  • Loading branch information
maxalmonte14 committed Nov 10, 2018
1 parent 6789eb4 commit 7f3808c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/code/Magento/DownloadableImportExport/Helper/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
*/
protected $parameters = [];

/**
* @var \Magento\Framework\DB\Adapter\AdapterInterface
*/
public $connection;

/**
* Construct
*
Expand All @@ -62,6 +67,7 @@ public function __construct(
$this->fileUploader->init();
$this->fileUploader->setAllowedExtensions($this->getAllowedExtensions());
$this->fileUploader->removeValidateCallback('catalog_product_image');
$this->connection = $resource->getConnection('write');
$this->mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::ROOT);
}

Expand Down

0 comments on commit 7f3808c

Please sign in to comment.