Skip to content

Commit 02c61cc

Browse files
MC-15057: Use get() instead of create()
1 parent d66a738 commit 02c61cc

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/DownloadableSampleData/Model/Product

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public function __construct(
4444
$attrOptionCollectionFactory,
4545
$productCollectionFactory
4646
);
47-
$this->fileContentFactory = $fileContentFactory ?: ObjectManager::getInstance()->create(
47+
$this->fileContentFactory = $fileContentFactory ?: ObjectManager::getInstance()->get(
4848
\Magento\Downloadable\Api\Data\File\ContentInterfaceFactory::class
4949
);
50-
$this->filesystem = $filesystem ?: ObjectManager::getInstance()->create(
50+
$this->filesystem = $filesystem ?: ObjectManager::getInstance()->get(
5151
Filesystem::class
5252
);
5353
}

0 commit comments

Comments
 (0)