Exemplo n.º 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();
 }
Exemplo n.º 2
0
 /**
  * @return bool
  */
 protected function isTimeOut()
 {
     return $this->runtimeWatcher->isTimeOut();
 }
Exemplo n.º 3
0
 /**
  * @return bool
  */
 protected function isInTimeLimit()
 {
     return $this->runtimeWatcher->isInTimeLimit();
 }