protected function buildTaskFromCallable($callable)
    {
        $task = new ClosureTask();
        $task->setContainer($this->container);
        $task->setClosure(function () use ($callable, $task) {
            list($class, $method) = is_array($callable) ? $callable : explode('::', $callable);

            return $this->getContainer()->get($class)->$method($task);
        });

        return $task;
    }