Skip to content

Commit

Permalink
Undeprecate doctrine:cache:clear-metadata command (fixes #1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Nov 28, 2021
1 parent e008e76 commit 7d36ca4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Command/Proxy/ClearMetadataCacheDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

use function trigger_deprecation;

/**
* Command to clear the metadata cache of the various cache drivers.
*
* @deprecated
*/
class ClearMetadataCacheDoctrineCommand extends MetadataCommand
{
Expand All @@ -39,13 +35,6 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
trigger_deprecation(
'doctrine/doctrine-bundle',
'2.3',
'The "%s" (doctrine:cache:clear-metadata) is deprecated, metadata cache now uses PHP Array cache which can not be cleared.',
self::class
);

DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));

return parent::execute($input, $output);
Expand Down

0 comments on commit 7d36ca4

Please sign in to comment.