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