Example #1
0
 protected function saveImportLog()
 {
     $this->importLog->setUserLastIndex($this->lastItemIndex);
     $this->importLog->setUnProcessItemCount($this->itemCollector->getUnProcessItemCount());
     $this->importLog->setRuntime($this->runtimeWatcher->getRuntime());
     $error = $this->getError();
     $this->importLog->setError($error[0]);
     $log = $this->importLog->getUserLog();
     $this->entityManager->persist($log);
     $this->entityManager->flush();
 }
Example #2
0
 /**
  * @return bool
  */
 protected function isTimeOut()
 {
     return $this->runtimeWatcher->isTimeOut();
 }
Example #3
0
 /**
  * @return bool
  */
 protected function isInTimeLimit()
 {
     return $this->runtimeWatcher->isInTimeLimit();
 }