コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function isHandling(array $record) : bool
 {
     if (count($record) == 1) {
         return parent::isHandling($record);
     }
     if (!parent::isHandling($record)) {
         return false;
     }
     if (empty($this->channel)) {
         return empty($record['context']['channel']);
     }
     if (empty($record['context']['channel'])) {
         return false;
     }
     $supported = $this->channel === $record['context']['channel'];
     return $supported;
 }
コード例 #2
0
 public function isHandling(array $record)
 {
     return $this->streamHandler->isHandling($record);
 }