123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Symfony\Framework\DoctrineBundle\Command;
- use Symfony\Components\Console\Input\InputOption;
- use Symfony\Components\Console\Input\InputInterface;
- use Symfony\Components\Console\Output\OutputInterface;
- use Doctrine\ORM\Tools\Console\Command\ClearCache\MetadataCommand;
- /*
- * This file is part of the Symfony framework.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- /**
- * Command to clear the metadata cache of the various cache drivers.
- *
- * @package Symfony
- * @subpackage Framework_DoctrineBundle
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- * @author Jonathan H. Wage <jonwage@gmail.com>
- */
- class ClearMetadataCacheDoctrineCommand extends MetadataCommand
- {
- protected function configure()
- {
- parent::configure();
- $this->setName('doctrine:clear-cache:metadata');
- $this->addOption('em', null, InputOption::PARAMETER_OPTIONAL, 'The entity manager to clear the cache for.');
- }
- protected function execute(InputInterface $input, OutputInterface $output)
- {
- DoctrineCommand::setApplicationEntityManager($this->application, $input->getOption('em'));
- return parent::execute($input, $output);
- }
- }
|