CLI: Apply modifiers in 'importsource fetch'

refs #1819
This commit is contained in:
Eric Lippmann 2019-09-06 11:20:53 +02:00 committed by Thomas Gelf
parent dbc4699042
commit d56ba2ed94
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class ImportsourceCommand extends Command
$hook = ImportSourceHook::forImportSource($source);
Benchmark::measure('Ready to fetch data');
$data = $hook->fetchData();
$source->applyModifiers($this);
$source->applyModifiers($data);
Benchmark::measure(sprintf('Got %d rows, ready to dump JSON', count($data)));
echo json_encode($data, JSON_PRETTY_PRINT);
}