protected function processTasks($tasks)
    {
        foreach ($tasks as $taskName => $taskConfig) {
            $serviceId = sprintf('task.%s', $taskName);
            $this->container->setDefinition(
                $serviceId,
                new Definition()
            )->setSynthetic(true);

            $command = $this->buildTask($taskName, $taskConfig);

            $this->container->set($serviceId, $command);
            $this->container->get('application')->add($command);
        }
    }