Goetas\Xsd\XsdToPhp\Command\AbstractConvert::configure PHP Method

configure() protected method

See also: Console\Command\Command
protected configure ( )
    protected function configure()
    {
        $this->setDefinition(array(new InputArgument('src', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'Where is located your XSD definitions'), new InputOption('ns-map', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'How to map XML namespaces to PHP namespaces? Syntax: <info>XML-namespace;PHP-namespace</info>'), new InputOption('ns-dest', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Where place the generated files? Syntax: <info>PHP-namespace;destination-directory</info>'), new InputOption('alias-map', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'How to map XML namespaces into existing PHP classes? Syntax: <info>XML-namespace;XML-type;PHP-type</info>. '), new InputOption('naming-strategy', null, InputOption::VALUE_REQUIRED, 'The naming strategy for classes. short|long', 'short')));
    }

Usage Example

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');
 }
All Usage Examples Of Goetas\Xsd\XsdToPhp\Command\AbstractConvert::configure