Skip to content

Commit aec7bab

Browse files
committed
ACPT-493: Upload csv with API request parameter
1 parent 9d36d86 commit aec7bab

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/code/Magento/ImportCsv/Model/SourceData.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public function getCsvData()
7878
return $this->csvData;
7979
}
8080

81-
8281
/**
8382
* @inheritDoc
8483
*/

app/code/Magento/ImportExport/Model/Import/Source/Data.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
class Data extends AbstractSource
1313
{
14+
/**
15+
* @var array
16+
*/
1417
private $rows;
1518

1619
/**
@@ -38,6 +41,11 @@ public function __construct(string $data)
3841
parent::__construct($colNames);
3942
}
4043

44+
/**
45+
* Read next line from CSV data
46+
*
47+
* @return array
48+
*/
4149
protected function _getNextRow()
4250
{
4351
if ($this->_key===count($this->rows)) {

0 commit comments

Comments
 (0)