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