Example #1
0
 public function update(AbstractProvider $subject)
 {
     $entry = $subject->getEntry();
     if ($entry->getExceptions()) {
         // send an email to administrator
     }
 }
Example #2
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 #4
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());
         }
     }
 }