Skip to content

Commit 62f8492

Browse files
Merge remote-tracking branch 'publication/2.3.1-rc' into 2.3
2 parents 2a4208b + e5412e4 commit 62f8492

File tree

23 files changed

+68
-34
lines changed

23 files changed

+68
-34
lines changed

app/code/Magento/BundleSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"Magento\\BundleSampleData\\": ""
2222
}
2323
},
24-
"version": "100.3.0"
24+
"version": "100.3.1"
2525
}

app/code/Magento/CatalogRuleSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"Magento\\CatalogRuleSampleData\\": ""
2020
}
2121
},
22-
"version": "100.3.0"
22+
"version": "100.3.1"
2323
}

app/code/Magento/CatalogSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"Magento\\CatalogSampleData\\": ""
1919
}
2020
},
21-
"version": "100.3.0"
21+
"version": "100.3.1"
2222
}

app/code/Magento/CmsSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"Magento\\CmsSampleData\\": ""
2222
}
2323
},
24-
"version": "100.3.0"
24+
"version": "100.3.1"
2525
}

app/code/Magento/ConfigurableSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"Magento\\ConfigurableSampleData\\": ""
2121
}
2222
},
23-
"version": "100.3.0"
23+
"version": "100.3.1"
2424
}

app/code/Magento/CustomerSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
"Magento\\CustomerSampleData\\": ""
1919
}
2020
},
21-
"version": "100.3.0"
21+
"version": "100.3.1"
2222
}

app/code/Magento/DownloadableSampleData/Model/Product/Converter.php

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,35 @@ class Converter extends \Magento\CatalogSampleData\Model\Product\Converter
2424
*/
2525
private $filesystem;
2626

27+
public function __construct(
28+
\Magento\Catalog\Model\Category\TreeFactory $categoryTreeFactory,
29+
\Magento\Catalog\Model\ResourceModel\Category\TreeFactory $categoryResourceTreeFactory,
30+
\Magento\Eav\Model\Config $eavConfig,
31+
\Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory,
32+
\Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory,
33+
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory,
34+
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory,
35+
\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory $fileContentFactory = null,
36+
Filesystem $filesystem = null
37+
) {
38+
parent::__construct(
39+
$categoryTreeFactory,
40+
$categoryResourceTreeFactory,
41+
$eavConfig,
42+
$categoryCollectionFactory,
43+
$attributeCollectionFactory,
44+
$attrOptionCollectionFactory,
45+
$productCollectionFactory
46+
);
47+
$this->fileContentFactory = $fileContentFactory ?: ObjectManager::getInstance()->get(
48+
\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class
49+
);
50+
$this->filesystem = $filesystem ?: ObjectManager::getInstance()->get(
51+
Filesystem::class
52+
);
53+
}
54+
55+
2756
/**
2857
* Get downloadable data from array
2958
*
@@ -159,11 +188,6 @@ public function getSamplesInfo()
159188
*/
160189
private function getFileContent()
161190
{
162-
if (!$this->fileContentFactory) {
163-
$this->fileContentFactory = ObjectManager::getInstance()->create(
164-
\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class
165-
);
166-
}
167191
return $this->fileContentFactory->create();
168192
}
169193

@@ -173,11 +197,6 @@ private function getFileContent()
173197
*/
174198
private function getFilesystem()
175199
{
176-
if (!$this->filesystem) {
177-
$this->filesystem = ObjectManager::getInstance()->create(
178-
Filesystem::class
179-
);
180-
}
181200
return $this->filesystem;
182201
}
183202
}

app/code/Magento/DownloadableSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
"Magento\\DownloadableSampleData\\": ""
2323
}
2424
},
25-
"version": "100.3.0"
25+
"version": "100.3.1"
2626
}

app/code/Magento/GroupedProductSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
"Magento\\GroupedProductSampleData\\": ""
2222
}
2323
},
24-
"version": "100.3.0"
24+
"version": "100.3.1"
2525
}

app/code/Magento/MsrpSampleData/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"Magento\\MsrpSampleData\\": ""
2020
}
2121
},
22-
"version": "100.3.0"
22+
"version": "100.3.1"
2323
}

0 commit comments

Comments
 (0)