/**
  * {@inheritdoc}
  */
 public function persist(TaskInterface $task)
 {
     $entity = $this->taskRepository->findByUuid($task->getUuid());
     $this->setTask($entity, $task);
     $this->entityManager->persist($entity);
     $this->entityManager->flush();
 }
 /**
  * {@inheritdoc}
  */
 public function findByTask(TaskInterface $task)
 {
     return $this->findByTaskUuid($task->getUuid());
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function executeAt(\DateTime $executionDate)
 {
     $this->task->setFirstExecution($executionDate);
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function setExecutionDate(\DateTime $executionDate)
 {
     $this->task->setExecutionDate($executionDate);
     return $this;
 }
示例#5
0
 /**
  * Returns message for "no handler found".
  *
  * @param TaskInterface $task
  *
  * @return string
  */
 private function getNoHandlerFoundMessage(TaskInterface $task)
 {
     return sprintf('No handler found handler for "%s" task.', $task->getTaskName());
 }
 /**
  * {@inheritdoc}
  */
 public function getUuid()
 {
     return $this->task->getUuid();
 }