Inheritance: extends AbstractConvert
Beispiel #1
0
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $this->setDefinition(array(new InputArgument('src', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Where is located your XSD definitions', array(__DIR__ . '/../../Resources/wsdl/types.xsd', __DIR__ . '/../../Resources/wsdl/messages.xsd')), new InputOption('ns-map', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'How to map XML namespaces to PHP namespaces? Syntax: <info>XML-namespace;PHP-namespace</info>', array('http://schemas.microsoft.com/exchange/services/2006/types;/jamesiarmes/PEWS/API/Type/', 'http://schemas.microsoft.com/exchange/services/2006/messages;/jamesiarmes/PEWS/API/Message/')), new InputOption('ns-dest', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'Where place the generated files? Syntax: <info>PHP-namespace;destination-directory</info>', array('jamesiarmes/PEWS/API/Type/;' . __DIR__ . '/../API/Type', 'jamesiarmes/PEWS/API/Message/;' . __DIR__ . '/../API/Message')), new InputOption('alias-map', null, InputOption::VALUE_OPTIONAL | 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_OPTIONAL, 'The naming strategy for classes. short|long', 'short')));
 }