コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function update(AbstractProvider $subject)
 {
     $exceptions = $subject->getEntry()->getExceptions();
     if ($exceptions) {
         foreach ($exceptions as $exception) {
             $this->logger->add(LogInterface::ERROR, $exception, new \DateTime());
         }
     }
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function update(AbstractProvider $subject)
 {
     $entry = $subject->getEntry();
     try {
         $this->report->save($entry);
     } catch (ReportException $ex) {
         if ($this->logger) {
             $this->logger->add(LogInterface::ERROR, $ex->getMessage());
         }
     }
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function update(AbstractProvider $subject)
 {
     $entry = $subject->getEntry();
     try {
         $this->store->connect();
         $this->store->add($entry);
     } catch (StoreException $ex) {
         if ($this->logger) {
             $this->logger->add(LogInterface::ERROR, $ex->getMessage());
         }
     }
 }