Skip to content

Commit 1416dcb

Browse files
committed
sync w/ import-engine
1 parent a7594ed commit 1416dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/ImportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function import(OutputInterface $output, $importerId, $sourceProviderI
9393
//status callback
9494
$this->getContainer()->get('event_dispatcher')->addListener(ImportItemEvent::AFTER_READ, function (ImportItemEvent $event) use ($output, &$progress) {
9595
/** @var ImportRun $importRun */
96-
$importRun = $event->getContext();
96+
$importRun = $event->getContext()->getRun();
9797
$stats = $importRun->getStatistics();
9898
$processed = isset($stats['processed'])?$stats['processed']:0;
9999
$max = $importRun->getInfo()['count'];

0 commit comments

Comments
 (0)