protected function loadConsole()
{
$builder = $this->getContainerBuilder();
foreach ($this->loadFromFile(__DIR__ . '/console.neon') as $i => $command) {
$cli = $builder->addDefinition($this->prefix('cli.' . $i))->addTag(Kdyby\Console\DI\ConsoleExtension::COMMAND_TAG)->setInject(FALSE);
// lazy injects
if (is_string($command)) {
$cli->setClass($command);
} else {
throw new Kdyby\Doctrine\NotSupportedException();
}
}
}