Remove useless code
This commit is contained in:
@@ -104,15 +104,7 @@ class Webhook extends Base
|
|||||||
*/
|
*/
|
||||||
public function attachCreateEvents()
|
public function attachCreateEvents()
|
||||||
{
|
{
|
||||||
$events = array(
|
$this->event->attach(Task::EVENT_CREATE, new WebhookListener($this->url_task_creation, $this));
|
||||||
Task::EVENT_CREATE,
|
|
||||||
);
|
|
||||||
|
|
||||||
$listener = new WebhookListener($this->url_task_creation, $this);
|
|
||||||
|
|
||||||
foreach ($events as $event_name) {
|
|
||||||
$this->event->attach($event_name, $listener);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user