/** * Handle the command. * * @internal param ImportFromSpreadsheet $command */ public function handle() { $this->categoryRepository->saveFromList($this->excelImportRepository->getColumn('category')); $this->manufacturerRepository->saveFromList($this->excelImportRepository->getColumn('manufacturer')); $this->productRepository->saveFromList($this->excelImportRepository->getAllColumns()); }