cancel
Showing results for 
Search instead for 
Did you mean: 

ImportExport module: can't work custom file adapter in magento2?

ImportExport module: can't work custom file adapter in magento2?

I have rewrite \Magento\ImportExport\Model\Import class with function:

protected function _getSourceAdapter($sourceFile)
{
return
\Namespace\DownloadableImport\Model\Import\Adapter::findAdapterFor(
$sourceFile,
$this->_filesystem->getDirectoryWrite(DirectoryList::ROOT),
$this->getData(self::FIELD_FIELD_SEPARATOR)
);
}
i have replce adapter

> Magento\ImportExport\Model\Import\Adapter with \Namespace\DownloadableImport\Model\Import\Adapter


but when i uploading csv and check data process it's give me error
but if i replace original adapter it works fine