|
@@ 327-334 (lines=8) @@
|
| 324 |
|
* |
| 325 |
|
* @return ReaderInterface |
| 326 |
|
*/ |
| 327 |
|
protected function createImportReader(Import $import, EventDispatcherInterface $dispatcher, array $options = []) |
| 328 |
|
{ |
| 329 |
|
$feed = $import->getFeed(); |
| 330 |
|
$transport = $feed->getTransportConfig(); |
| 331 |
|
$resourceType = ReaderBuilderInterface::RESOURCE_TYPE_MAIN; |
| 332 |
|
|
| 333 |
|
return $this->createReader($import, $transport, $resourceType, $dispatcher, $options); |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
/** |
| 337 |
|
* @param ImportPart $importPart |
|
@@ 343-350 (lines=8) @@
|
| 340 |
|
* |
| 341 |
|
* @return ReaderInterface |
| 342 |
|
*/ |
| 343 |
|
protected function createImportPartReader(ImportPart $importPart, EventDispatcherInterface $dispatcher, array $options = []) |
| 344 |
|
{ |
| 345 |
|
$import = $importPart->getImport(); |
| 346 |
|
$transport = $importPart->getTransportConfig(); |
| 347 |
|
$resourceType = ReaderBuilderInterface::RESOURCE_TYPE_PART; |
| 348 |
|
|
| 349 |
|
return $this->createReader($import, $transport, $resourceType, $dispatcher, $options); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
|
/** |
| 353 |
|
* @param FeedEntity $feed |