From 210b0cb5a029bbd77aeb78d3fdaa2eb33d39204f Mon Sep 17 00:00:00 2001 From: freek Date: Wed, 4 Sep 2019 23:07:03 +0200 Subject: [PATCH] wip --- CHANGELOG.md | 4 ++++ src/CallWebhookJob.php | 15 +++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4f931c..6b6fe83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to `laravel-webhook-server` will be documented in this file +## 1.2.0 - 2019-09-04 + +- add `getResponse` + ## 1.1.0 - 2019-09-04 - Add Laravel 6 support diff --git a/src/CallWebhookJob.php b/src/CallWebhookJob.php index 61e73e4..a4f5b10 100644 --- a/src/CallWebhookJob.php +++ b/src/CallWebhookJob.php @@ -100,6 +100,16 @@ public function handle() } } + public function tags() + { + return $this->tags; + } + + public function getResponse() + { + return $this->response; + } + private function dispatchEvent(string $eventClass) { event(new $eventClass( @@ -114,8 +124,5 @@ private function dispatchEvent(string $eventClass) )); } - public function tags() - { - return $this->tags; - } + }