diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-17 12:30:05 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-17 12:30:05 -0400 |
commit | 472f94efee77d8f47ece4ead7d36ee02e5df3e56 (patch) | |
tree | 3456ca052db268b1477aa8b9a741d14bb9927515 /app/Model/Webhook.php | |
parent | 3543f45c2d4d6e96e5b88c3168075c0d583fc261 (diff) |
Move webhook to project notification type
Diffstat (limited to 'app/Model/Webhook.php')
-rw-r--r-- | app/Model/Webhook.php | 34 |
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); - } - } -} |