Skip to content

Commit

Permalink
Remove the orm:ensure-production-settings console command (#9263)
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov authored Dec 18, 2021
1 parent 25ca8dc commit ad97969
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 190 deletions.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ _before_ upgrading to 3.0:
php doctrine orm:convert-mapping xml /path/to/mapping-path-converted-to-xml
```

## BC BREAK: Remove the `orm:ensure-production-settings` console command

The `orm:ensure-production-settings` console command and its implementation
`Doctrine\ORM\Tools\Console\Command\EnsureProductionSettingsCommand` have been removed.

## BC BREAK: Remove code generators and related console commands

These console commands have been removed:
Expand Down
2 changes: 0 additions & 2 deletions docs/en/reference/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ The following Commands are currently available:
cache drivers.
- ``orm:clear-cache:result`` Clear result cache of the various
cache drivers.
- ``orm:ensure-production-settings`` Verify that Doctrine is
properly configured for a production environment.
- ``orm:generate-proxies`` Generates proxy classes for entity
classes.
- ``orm:run-dql`` Executes arbitrary DQL directly from the command
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public static function addCommands(Application $cli, ?EntityManagerProvider $ent
new Command\SchemaTool\CreateCommand($entityManagerProvider),
new Command\SchemaTool\UpdateCommand($entityManagerProvider),
new Command\SchemaTool\DropCommand($entityManagerProvider),
new Command\EnsureProductionSettingsCommand($entityManagerProvider),
new Command\GenerateProxiesCommand($entityManagerProvider),
new Command\RunDqlCommand($entityManagerProvider),
new Command\ValidateSchemaCommand($entityManagerProvider),
Expand Down
5 changes: 0 additions & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3153,11 +3153,6 @@
<code>$cacheDriver</code>
</PossiblyNullArgument>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/EnsureProductionSettingsCommand.php">
<MissingReturnType occurrences="1">
<code>configure</code>
</MissingReturnType>
</file>
<file src="lib/Doctrine/ORM/Tools/Console/Command/GenerateProxiesCommand.php">
<DeprecatedMethod occurrences="2">
<code>getProxyDir</code>
Expand Down
2 changes: 0 additions & 2 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
<errorLevel type="suppress">
<!-- The exception is thrown by a deprecated method. -->
<referencedClass name="Doctrine\ORM\Cache\Exception\InvalidResultCacheDriver"/>
<!-- Remove on 3.0.x -->
<referencedClass name="Doctrine\ORM\Tools\Console\Command\EnsureProductionSettingsCommand"/>
</errorLevel>
</DeprecatedClass>
<DeprecatedMethod>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function testCreateApplicationShouldReturnAnApplicationWithTheCorrectComm
self::assertTrue($app->has('orm:clear-cache:metadata'));
self::assertTrue($app->has('orm:clear-cache:query'));
self::assertTrue($app->has('orm:clear-cache:result'));
self::assertTrue($app->has('orm:ensure-production-settings'));
self::assertTrue($app->has('orm:generate-proxies'));
self::assertTrue($app->has('orm:generate:proxies'));
self::assertTrue($app->has('orm:info'));
Expand Down

0 comments on commit ad97969

Please sign in to comment.