Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatibility with contributte/console #14

Merged
merged 1 commit into from May 15, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+12 −0
Diff settings

Always

Just for now

Fix incompatibility with contributte/console

It is not possible to use contributte/console in lazy mode. If you try, you will get this error:
`Nette\DI\ServiceCreationException: Command "Doctrine\ORM\Tools\Console\Command\SchemaTool\CreateCommand" missing tag "console.command[name]" or variable "$defaultName". in ...`
  • Loading branch information...
RiKap committed May 15, 2018
commit e9c72b6799fa471b48567d8706dade2ac1b8224b
Copy path View file
@@ -49,39 +49,51 @@ public function loadConfiguration(): void
// Commands
$builder->addDefinition($this->prefix('schemaToolCreateCommand'))
->setClass(CreateCommand::class)
->addTag('console.command', 'orm:schema-tool:create')
->setAutowired(false);
$builder->addDefinition($this->prefix('schemaToolUpdateCommand'))
->setClass(UpdateCommand::class)
->addTag('console.command', 'orm:schema-tool:update')
->setAutowired(false);
$builder->addDefinition($this->prefix('schemaToolDropCommand'))
->setClass(DropCommand::class)
->addTag('console.command', 'orm:schema-tool:drop')
->setAutowired(false);
$builder->addDefinition($this->prefix('convertMappingCommand'))
->setClass(ConvertMappingCommand::class)
->addTag('console.command', 'orm:convert-mapping')
->setAutowired(false);
$builder->addDefinition($this->prefix('ensureProductionSettingsCommand'))
->setClass(EnsureProductionSettingsCommand::class)
->addTag('console.command', 'orm:ensure-production-settings')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateEntitiesCommand'))
->setClass(GenerateEntitiesCommand::class)
->addTag('console.command', 'orm:generate-entities')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateProxiesCommand'))
->setClass(GenerateProxiesCommand::class)
->addTag('console.command', 'orm:generate-proxies')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateRepositoriesCommand'))
->setClass(GenerateRepositoriesCommand::class)
->addTag('console.command', 'orm:generate-repositories')
->setAutowired(false);
$builder->addDefinition($this->prefix('infoCommand'))
->setClass(InfoCommand::class)
->addTag('console.command', 'orm:info')
->setAutowired(false);
$builder->addDefinition($this->prefix('mappingDescribeCommand'))
->setClass(MappingDescribeCommand::class)
->addTag('console.command', 'orm:mapping:describe')
->setAutowired(false);
$builder->addDefinition($this->prefix('runDqlCommand'))
->setClass(RunDqlCommand::class)
->addTag('console.command', 'orm:run-dql')
->setAutowired(false);
$builder->addDefinition($this->prefix('validateSchemaCommand'))
->setClass(ValidateSchemaCommand::class)
->addTag('console.command', 'orm:validate-schema')
->setAutowired(false);
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.