Selaa lähdekoodia

Expose a getter for the SlackRecord in Slack handlers

Haralan Dobrev 9 vuotta sitten
vanhempi
commit
862c0875d2

+ 5 - 0
src/Monolog/Handler/SlackHandler.php

@@ -78,6 +78,11 @@ class SlackHandler extends SocketHandler
         $this->token = $token;
         $this->token = $token;
     }
     }
 
 
+    public function getSlackRecord()
+    {
+        return $this->slackRecord;
+    }
+
     /**
     /**
      * {@inheritdoc}
      * {@inheritdoc}
      *
      *

+ 5 - 0
src/Monolog/Handler/SlackWebhookHandler.php

@@ -72,6 +72,11 @@ class SlackWebhookHandler extends AbstractProcessingHandler
         );
         );
     }
     }
 
 
+    public function getSlackRecord()
+    {
+        return $this->slackRecord;
+    }
+
     /**
     /**
      * {@inheritdoc}
      * {@inheritdoc}
      *
      *