src/Rocketeer/Plugins/AbstractNotifier.php
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);
    }
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);
    }
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 ) ; }
Register Tasks with Rocketeer.

@param \Rocketeer\Services\Tasks\TasksHandler $tasks
Register Tasks with Rocketeer .