/**
  * {@inheritdoc}
  */
 public function setFormatter(FormatterInterface $formatter)
 {
     if (!$formatter instanceof FlowdockFormatter) {
         throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\\Formatter\\FlowdockFormatter to function correctly');
     }
     return parent::setFormatter($formatter);
 }
Exemplo n.º 2
0
 public function setFormatter(FormatterInterface $formatter)
 {
     parent::setFormatter($formatter);
     $this->slackRecord->setFormatter($formatter);
     return $this;
 }