Altax\Console\Application::registerTasksAsConsoleCommands PHP Method

registerTasksAsConsoleCommands() protected method

[registerTasksAsConsoleCommands description]
protected registerTasksAsConsoleCommands ( ) : [type]
return [type]
    protected function registerTasksAsConsoleCommands()
    {
        $tasks = $this->container->get("tasks");
        if ($tasks && is_array($tasks)) {
            foreach ($tasks as $task) {
                $this->add($task->createCommandInstance());
            }
        }
    }