Skip to content

Commit

Permalink
Cleanup: drop deprecated console commands
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jul 3, 2023
1 parent 8f6ea72 commit e3e458c
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/DI/OrmConsoleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
namespace Nettrine\ORM\DI;

use Doctrine\ORM\Tools\Console\Command\ClearCache\MetadataCommand;
use Doctrine\ORM\Tools\Console\Command\ConvertMappingCommand;
use Doctrine\ORM\Tools\Console\Command\EnsureProductionSettingsCommand;
use Doctrine\ORM\Tools\Console\Command\GenerateEntitiesCommand;
use Doctrine\ORM\Tools\Console\Command\GenerateProxiesCommand;
use Doctrine\ORM\Tools\Console\Command\GenerateRepositoriesCommand;
use Doctrine\ORM\Tools\Console\Command\InfoCommand;
use Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand;
use Doctrine\ORM\Tools\Console\Command\RunDqlCommand;
use Doctrine\ORM\Tools\Console\Command\SchemaTool\CreateCommand;
use Doctrine\ORM\Tools\Console\Command\SchemaTool\DropCommand;
use Doctrine\ORM\Tools\Console\Command\SchemaTool\UpdateCommand;
use Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Nette\DI\Definitions\ServiceDefinition;
use Nette\DI\Definitions\Statement;
use Nette\DI\ServiceCreationException;
Expand Down Expand Up @@ -48,11 +43,6 @@ public function loadConfiguration(): void

$builder = $this->getContainerBuilder();

// Helpers
$builder->addDefinition($this->prefix('entityManagerHelper'))
->setType(EntityManagerHelper::class)
->setAutowired(false);

// Commands
$builder->addDefinition($this->prefix('schemaToolCreateCommand'))
->setType(CreateCommand::class)
Expand All @@ -66,26 +56,10 @@ public function loadConfiguration(): void
->setType(DropCommand::class)
->addTag('console.command', 'orm:schema-tool:drop')
->setAutowired(false);
$builder->addDefinition($this->prefix('convertMappingCommand'))
->setType(ConvertMappingCommand::class)
->addTag('console.command', 'orm:convert-mapping')
->setAutowired(false);
$builder->addDefinition($this->prefix('ensureProductionSettingsCommand'))
->setType(EnsureProductionSettingsCommand::class)
->addTag('console.command', 'orm:ensure-production-settings')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateEntitiesCommand'))
->setType(GenerateEntitiesCommand::class)
->addTag('console.command', 'orm:generate-entities')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateProxiesCommand'))
->setType(GenerateProxiesCommand::class)
->addTag('console.command', 'orm:generate-proxies')
->setAutowired(false);
$builder->addDefinition($this->prefix('generateRepositoriesCommand'))
->setType(GenerateRepositoriesCommand::class)
->addTag('console.command', 'orm:generate-repositories')
->setAutowired(false);
$builder->addDefinition($this->prefix('infoCommand'))
->setType(InfoCommand::class)
->addTag('console.command', 'orm:info')
Expand Down

0 comments on commit e3e458c

Please sign in to comment.