summaryrefslogtreecommitdiff
path: root/app/Event/WebhookListener.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-12 21:38:56 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-12 21:38:56 -0400
commit074056352de98fc567b4d13184c72887c75625d0 (patch)
tree7d262c3a5d5f779648f51aa0eb7d9f279c05d89d /app/Event/WebhookListener.php
parent4061927d215c846ff8eb196301bf61532018042b (diff)
Project activity refactoring and listeners improvements
Diffstat (limited to 'app/Event/WebhookListener.php')
-rw-r--r--app/Event/WebhookListener.php32
1 files changed, 4 insertions, 28 deletions
diff --git a/app/Event/WebhookListener.php b/app/Event/WebhookListener.php
index c2f6d56a..f7e23e07 100644
--- a/app/Event/WebhookListener.php
+++ b/app/Event/WebhookListener.php
@@ -2,26 +2,15 @@
namespace Event;
-use Core\Listener;
-use Model\Webhook;
-
/**
* Webhook task events
*
* @package event
* @author Frederic Guillot
*/
-class WebhookListener implements Listener
+class WebhookListener extends Base
{
/**
- * Webhook model
- *
- * @accesss private
- * @var \Model\Webhook
- */
- private $webhook;
-
- /**
* Url to call
*
* @access private
@@ -30,27 +19,14 @@ class WebhookListener implements Listener
private $url = '';
/**
- * Constructor
+ * Set webhook url
*
* @access public
- * @param string $url URL to call
- * @param \Model\Webhook $webhook Webhook model instance
+ * @param string $url URL to call
*/
- public function __construct($url, Webhook $webhook)
+ public function setUrl($url)
{
$this->url = $url;
- $this->webhook = $webhook;
- }
-
- /**
- * Return class information
- *
- * @access public
- * @return string
- */
- public function __toString()
- {
- return get_called_class();
}
/**