summaryrefslogtreecommitdiff
path: root/app/Model/Webhook.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-17 12:30:05 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-17 12:30:05 -0400
commit472f94efee77d8f47ece4ead7d36ee02e5df3e56 (patch)
tree3456ca052db268b1477aa8b9a741d14bb9927515 /app/Model/Webhook.php
parent3543f45c2d4d6e96e5b88c3168075c0d583fc261 (diff)
Move webhook to project notification type
Diffstat (limited to 'app/Model/Webhook.php')
-rw-r--r--app/Model/Webhook.php34
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Model/Webhook.php b/app/Model/Webhook.php
deleted file mode 100644
index 7c17e61e..00000000
--- a/app/Model/Webhook.php
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-namespace Kanboard\Model;
-
-/**
- * Webhook model
- *
- * @package model
- * @author Frederic Guillot
- */
-class Webhook extends Base
-{
- /**
- * Call the external URL
- *
- * @access public
- * @param array $values Event payload
- */
- public function notify(array $values)
- {
- $url = $this->config->get('webhook_url');
- $token = $this->config->get('webhook_token');
-
- if (! empty($url)) {
- if (strpos($url, '?') !== false) {
- $url .= '&token='.$token;
- } else {
- $url .= '?token='.$token;
- }
-
- return $this->httpClient->postJson($url, $values);
- }
- }
-}