コード例 #1
0
 /**
  * {@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);
 }
コード例 #2
0
ファイル: SlackHandler.php プロジェクト: naldz/cyberden
 public function setFormatter(FormatterInterface $formatter)
 {
     parent::setFormatter($formatter);
     $this->slackRecord->setFormatter($formatter);
     return $this;
 }