src/Mathielen/DataImport/ItemConverter/ContextMergeConverter.php 1 location
|
@@ 23-31 (lines=9) @@
|
20 |
|
); |
21 |
|
} |
22 |
|
|
23 |
|
public function onImportPrepare(ImportProcessEvent $event) |
24 |
|
{ |
25 |
|
//merge converter only works if context is an array |
26 |
|
if (!($event->getContext() instanceof Import) || !is_array($event->getContext()->getRun()->getContext())) { |
27 |
|
return; |
28 |
|
} |
29 |
|
|
30 |
|
$this->currentContext = $event->getContext()->getRun()->getContext(); |
31 |
|
} |
32 |
|
|
33 |
|
public function onImportFinish(ImportProcessEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) |
34 |
|
{ |
src/Mathielen/DataImport/ItemConverter/ContextSupplyConverter.php 1 location
|
@@ 30-38 (lines=9) @@
|
27 |
|
); |
28 |
|
} |
29 |
|
|
30 |
|
public function onImportPrepare(ImportProcessEvent $event) |
31 |
|
{ |
32 |
|
//merge converter only works if context is an array |
33 |
|
if (!($event->getContext() instanceof Import) || !$event->getContext()->getRun()) { |
34 |
|
return; |
35 |
|
} |
36 |
|
|
37 |
|
$this->currentContext = $event->getContext()->getRun()->getContext(); |
38 |
|
} |
39 |
|
|
40 |
|
public function onImportFinish(ImportProcessEvent $event, $eventName, EventDispatcherInterface $eventDispatcher) |
41 |
|
{ |