This repository was archived by the owner on Dec 19, 2019. It is now read-only.
File tree 1 file changed +2
-8
lines changed
app/code/Magento/DownloadableImportExport/Helper 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,6 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
38
38
*/
39
39
protected $ parameters = [];
40
40
41
- /**
42
- * Connection resource.
43
- *
44
- * @var \Magento\Framework\DB\Adapter\AdapterInterface
45
- */
46
- protected $ connection = [];
47
-
48
41
/**
49
42
* Construct
50
43
*
@@ -53,6 +46,8 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
53
46
* @param \Magento\CatalogImportExport\Model\Import\UploaderFactory $uploaderFactory
54
47
* @param \Magento\Framework\App\ResourceConnection $resource
55
48
* @param \Magento\Framework\Filesystem $filesystem
49
+ *
50
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
56
51
*/
57
52
public function __construct (
58
53
\Magento \Framework \App \Helper \Context $ context ,
@@ -67,7 +62,6 @@ public function __construct(
67
62
$ this ->fileUploader ->init ();
68
63
$ this ->fileUploader ->setAllowedExtensions ($ this ->getAllowedExtensions ());
69
64
$ this ->fileUploader ->removeValidateCallback ('catalog_product_image ' );
70
- $ this ->connection = $ resource ->getConnection ('write ' );
71
65
$ this ->mediaDirectory = $ filesystem ->getDirectoryWrite (DirectoryList::ROOT );
72
66
}
73
67
You can’t perform that action at this time.
0 commit comments