|
@@ 309-316 (lines=8) @@
|
| 306 |
|
* |
| 307 |
|
* @return ReaderInterface |
| 308 |
|
*/ |
| 309 |
|
protected function createImportReader(Import $import, EventDispatcherInterface $dispatcher, array $options = []) |
| 310 |
|
{ |
| 311 |
|
$feed = $import->getFeed(); |
| 312 |
|
$transport = $feed->getTransportConfig(); |
| 313 |
|
$resourceType = ReaderBuilderInterface::RESOURCE_TYPE_MAIN; |
| 314 |
|
|
| 315 |
|
return $this->createReader($import, $transport, $resourceType, $dispatcher, $options); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
/** |
| 319 |
|
* @param ImportPart $importPart |
|
@@ 325-332 (lines=8) @@
|
| 322 |
|
* |
| 323 |
|
* @return ReaderInterface |
| 324 |
|
*/ |
| 325 |
|
protected function createImportPartReader(ImportPart $importPart, EventDispatcherInterface $dispatcher, array $options = []) |
| 326 |
|
{ |
| 327 |
|
$import = $importPart->getImport(); |
| 328 |
|
$transport = $importPart->getTransportConfig(); |
| 329 |
|
$resourceType = ReaderBuilderInterface::RESOURCE_TYPE_PART; |
| 330 |
|
|
| 331 |
|
return $this->createReader($import, $transport, $resourceType, $dispatcher, $options); |
| 332 |
|
} |
| 333 |
|
|
| 334 |
|
/** |
| 335 |
|
* @param FeedEntity $feed |