public function onQueue(TasksHandler $tasks)
    {
        // Create the task instance
        $notify = new Notify($this->container);
        $notify->setNotifier($this);

        $tasks->addTaskListeners('deploy', 'before', [clone $notify], -10);
        $tasks->addTaskListeners('deploy', 'after', [clone $notify], -10);
        $tasks->addTaskListeners('deploy', 'halt', [clone $notify], -10);
        $tasks->addTaskListeners('rollback', 'after', [clone $notify], -10);
    }