Skip to content

Commit 2d45eb3

Browse files
committed
Added _customerCollection property as public
1 parent e973095 commit 2d45eb3

File tree

1 file changed

+8
-0
lines changed
  • app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer

1 file changed

+8
-0
lines changed

app/code/Magento/CustomerImportExport/Model/ResourceModel/Import/Customer/Storage.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class Storage
4848
*/
4949
private $customerCollectionFactory;
5050

51+
/**
52+
* @var CustomerCollection
53+
*/
54+
public $_customerCollection;
55+
5156
/**
5257
* @param CustomerCollectionFactory $collectionFactory
5358
* @param CollectionByPagesIteratorFactory $colIteratorFactory
@@ -58,6 +63,9 @@ public function __construct(
5863
CollectionByPagesIteratorFactory $colIteratorFactory,
5964
array $data = []
6065
) {
66+
$this->_customerCollection = isset(
67+
$data['customer_collection']
68+
) ? $data['customer_collection'] : $collectionFactory->create();
6169
$this->_pageSize = isset($data['page_size']) ? $data['page_size'] : 0;
6270
$this->_byPagesIterator = isset(
6371
$data['collection_by_pages_iterator']

0 commit comments

Comments
 (0)