Kdyby\Doctrine\DI\OrmExtension::loadConsole PHP 메소드

loadConsole() 보호된 메소드

protected loadConsole ( )
    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();
            }
        }
    }