First attempt to run file import.

This commit is contained in:
James Cole
2018-05-10 06:26:57 +02:00
parent 6ef0eb73d0
commit 116f7ed613
2 changed files with 42 additions and 26 deletions

View File

@@ -61,17 +61,13 @@ class FileRoutine implements RoutineInterface
$processor->setJob($this->importJob);
$transactions = $processor->run();
// make processor run.
// then done!
// move to status 'processor_finished'.
// $this->repository->setStatus($this->importJob, 'provider_finished');
// $this->repository->setStage($this->importJob, 'final');
$this->repository->setStatus($this->importJob, 'provider_finished');
$this->repository->setStage($this->importJob, 'final');
$this->repository->setTransactions($this->importJob, $transactions);
break;
default:
throw new FireflyException(sprintf('Import routine cannot handle stage "%s"', $this->importJob->stage));
}
exit;
}
/**