summaryrefslogtreecommitdiff
path: root/app/Event/WebhookListener.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-27 19:10:38 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-27 19:10:38 -0500
commit17dc5bdc9ede52ad618bbf326e67e3b6988170f7 (patch)
tree9cf4d325667f11fa735bca84042fb385e3273329 /app/Event/WebhookListener.php
parentcf821e117ce8b937cff7f386a107aaa81ba6bf9b (diff)
Move events handling to Symfony\EventDispatcher
Diffstat (limited to 'app/Event/WebhookListener.php')
-rw-r--r--app/Event/WebhookListener.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/app/Event/WebhookListener.php b/app/Event/WebhookListener.php
deleted file mode 100644
index f7e23e07..00000000
--- a/app/Event/WebhookListener.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-namespace Event;
-
-/**
- * Webhook task events
- *
- * @package event
- * @author Frederic Guillot
- */
-class WebhookListener extends Base
-{
- /**
- * Url to call
- *
- * @access private
- * @var string
- */
- private $url = '';
-
- /**
- * Set webhook url
- *
- * @access public
- * @param string $url URL to call
- */
- public function setUrl($url)
- {
- $this->url = $url;
- }
-
- /**
- * Execute the action
- *
- * @access public
- * @param array $data Event data dictionary
- * @return bool True if the action was executed or false when not executed
- */
- public function execute(array $data)
- {
- $this->webhook->notify($this->url, $data);
- return true;
- }
-}