public function handleFile(ReaderInterface $reader, $path) { $reader->open($path); $output = []; while ($reader->hasNextRow()) { $output[] = $reader->nextRow(); } $reader->close(); return $output; }