public function addConsoleCommands()
    {
        $this->getConsole()->addUserArgumentsAndOptions();

        foreach ($this->tasks as $name => $task) {
            if ($task->isPrivate()) {
                continue;
            }

            $this->getConsole()->add(new TaskCommand($name, $task->getDescription(), $this));
        }
    }
public function addConsoleCommands()
    {
        $this->getConsole()->addUserArgumentsAndOptions();

        foreach ($this->tasks as $name => $task) {
            if ($task->isPrivate()) {
                continue;
            }

            $this->getConsole()->add(new TaskCommand($name, $task->getDescription(), $this));
        }
    }
public function addConsoleCommands ( ) { $ this -> getConsole ( ) -> addUserArgumentsAndOptions ( ) ; foreach ( $ this -> tasks as $ name => $ task ) { if ( $ task -> isPrivate ( ) ) { continue ; } $ this -> getConsole ( ) -> add ( new TaskCommand ( $ name , $ task -> getDescription ( ) , $ this ) ) ; } }
Transform tasks to console commands.
Transform tasks to console commands .