Пример #1
0
 /**
  * @param string $ticket
  * @return \Abc\Bundle\JobBundle\Model\JobInterface
  * @throws TicketNotFoundException If a job with the given ticket was not found
  */
 protected function findJob($ticket)
 {
     if ($job = $this->jobManager->findByTicket($ticket)) {
         return $job;
     }
     $this->logger->error('Job with ticket {ticket} not found', ['ticket' => $ticket]);
     throw new TicketNotFoundException($ticket);
 }