Example #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());
         }
     }
 }
 /**
  * {@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());
         }
     }
 }
Example #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());
         }
     }
 }