Doctrine\OXM\Tools\Console\Command\GenerateProxiesCommand::configure PHP Method

configure() protected method

See also: Console\Command\Command
protected configure ( )
    protected function configure()
    {
        $this->setName('oxm:generate:proxies')->setDescription('Generates proxy classes for xml-entities classes.')->setDefinition(array(new InputOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match xml-entities that should be processed.'), new InputArgument('dest-path', InputArgument::OPTIONAL, 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.')))->setHelp(<<<EOT
Generates proxy classes for xml-entity classes.
EOT
);
    }

Usage Example

    protected function configure()
    {
        parent::configure();
        $this->setName('doctrine:oxm:generate:proxies')->addOption('xem', null, InputOption::VALUE_OPTIONAL, 'The xml-entity manager to use for this command.')->setHelp(<<<EOT
The <info>doctrine:mongodb:generate:proxies</info> command generates proxy classes for your default xml-entity manager:

  <info>./app/console doctrine:oxm:generate:proxies</info>

You can specify the xml-entity manager you want to generate the proxies for:

  <info>./app/console doctrine:oxm:generate:proxies --xem=name</info>
EOT
);
    }
GenerateProxiesCommand