We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7594ed commit 1416dcbCopy full SHA for 1416dcb
Command/ImportCommand.php
@@ -93,7 +93,7 @@ protected function import(OutputInterface $output, $importerId, $sourceProviderI
93
//status callback
94
$this->getContainer()->get('event_dispatcher')->addListener(ImportItemEvent::AFTER_READ, function (ImportItemEvent $event) use ($output, &$progress) {
95
/** @var ImportRun $importRun */
96
- $importRun = $event->getContext();
+ $importRun = $event->getContext()->getRun();
97
$stats = $importRun->getStatistics();
98
$processed = isset($stats['processed'])?$stats['processed']:0;
99
$max = $importRun->getInfo()['count'];
0 commit comments