ImportsourceCommand: apply property modifiers...

...on fetch

fixes #1819
This commit is contained in:
Thomas Gelf 2019-04-04 13:16:17 +02:00
parent 3479c4a65c
commit 1027084f04
1 changed files with 1 additions and 0 deletions

View File

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