vendor/doctrine/doctrine-bundle/Command/Proxy/InfoDoctrineCommand.php line 13

Open in your IDE?
  1. <?php
  2. namespace Doctrine\Bundle\DoctrineBundle\Command\Proxy;
  3. use Doctrine\ORM\Tools\Console\Command\InfoCommand;
  4. use Symfony\Component\Console\Input\InputInterface;
  5. use Symfony\Component\Console\Input\InputOption;
  6. use Symfony\Component\Console\Output\OutputInterface;
  7. /**
  8.  * Show information about mapped entities
  9.  */
  10. class InfoDoctrineCommand extends InfoCommand
  11. {
  12.     /**
  13.      * {@inheritDoc}
  14.      */
  15.     protected function configure()
  16.     {
  17.         $this
  18.             ->setName('doctrine:mapping:info');
  19.         if ($this->getDefinition()->hasOption('em')) {
  20.             return;
  21.         }
  22.         $this->addOption('em'nullInputOption::VALUE_OPTIONAL'The entity manager to use for this command');
  23.     }
  24.     /**
  25.      * {@inheritDoc}
  26.      */
  27.     protected function execute(InputInterface $inputOutputInterface $output)
  28.     {
  29.         DoctrineCommandHelper::setApplicationEntityManager($this->getApplication(), $input->getOption('em'));
  30.         return parent::execute($input$output);
  31.     }
  32. }