From d6c1c1ea33de6386fabe7c9546bfae1c38d3b9e7 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 17:36:55 -0400 Subject: Improve notification classes and move interface to core --- app/Notification/Webhook.php | 55 -------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 app/Notification/Webhook.php (limited to 'app/Notification/Webhook.php') diff --git a/app/Notification/Webhook.php b/app/Notification/Webhook.php deleted file mode 100644 index e187909f..00000000 --- a/app/Notification/Webhook.php +++ /dev/null @@ -1,55 +0,0 @@ -config->get('webhook_url'); - $token = $this->config->get('webhook_token'); - - if (! empty($url)) { - if (strpos($url, '?') !== false) { - $url .= '&token='.$token; - } else { - $url .= '?token='.$token; - } - - $payload = array( - 'event_name' => $event_name, - 'event_data' => $event_data, - ); - - $this->httpClient->postJson($url, $payload); - } - } -} -- cgit v1.2.3