configure() protected method

See also: Console\Command\Command
protected configure ( )
Esempio n. 1
0
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $definition = $this->getDefinition();
     $definition->addOption(new InputOption('php-version', null, InputOption::VALUE_OPTIONAL, 'Target PHP version number. Syntax: <info>php-major.php-minor</info>. Example: <info>5.2</info>'));
     $definition->addOption(new InputOption('base-class', null, InputOption::VALUE_OPTIONAL, 'Base class name for generated classes.'));
     $this->setName('convert:php');
     $this->setDescription('Convert XSD definitions into PHP classes');
 }
Esempio n. 2
0
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('convert:jms-yaml');
     $this->setDescription('Convert XSD definitions into YAML metadata for JMS Serializer');
 }
Esempio n. 3
0
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('convert:php');
     $this->setDescription('Convert XSD definitions into PHP classes');
 }