Laravel\Envoy\Console\RunCommand::getTasks PHP Method

getTasks() protected method

Get the tasks from the container based on user input.
protected getTasks ( TaskContainer $container ) : void
$container Laravel\Envoy\TaskContainer
return void
    protected function getTasks($container)
    {
        $tasks = [$task = $this->argument('task')];
        if ($macro = $container->getMacro($task)) {
            $tasks = $macro;
        }
        return $tasks;
    }