/**
  * {@inheritdoc}
  */
 public function handleBatch(array $records)
 {
     if (false === $this->debug) {
         return;
     }
     $this->handler->handleBatch($records);
 }
 /**
  * @param HandlerInterface $handler
  * @param bool $flush
  */
 public function sendToHandler($handler, $flush = false)
 {
     $handler->handleBatch($this->buffer);
     if ($flush) {
         $this->flush();
     }
 }
 /**
  *
  * {@inheritdoc}
  *
  */
 public function handleBatch(array $records)
 {
     $filtered = array();
     foreach ($records as $record) {
         if ($this->isHandling($record)) {
             $filtered[] = $record;
         }
     }
     $this->handler->handleBatch($filtered);
 }
Exemple #4
0
 /**
  * {@inheritdoc}
  */
 public function handleBatch(array $records)
 {
     return $this->handler->handleBatch($records);
 }