irontec/wsdl2phpgenerator-command-bundle

提供wsdl2phpgenerator/wsdl2phpgenerator作为Symfony项目上的命令。

v1.1.1 2019-01-21 16:27 UTC

This package is not auto-updated.

Last update: 2024-09-20 10:37:13 UTC


README

提供wsdl2phpgenerator/wsdl2phpgenerator (3.4)作为Symfony项目上的命令("~2.6|~3.0")。

安装

在composer.json中要求安装irontec/wsdl2phpgenerator-command-bundle包并更新依赖项。

$ composer require irontec/wsdl2phpgenerator-command-bundle

将Wsdl2PhpGeneratorCommandBundle添加到应用程序的kernel中

    public function registerBundles()
    {
        // ...
    
    
        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
            // ...
            
            $bundles[] = new Irontec\Wsdl2PhpGeneratorCommandBundle\Wsdl2PhpGeneratorCommandBundle(),
        );
        // ...
    }

您可能仅在开发期间需要此包,因此...

使用方法

将有一个新的命令可用

$php bin/console list

// ...
wsdl2phpgenerator
 wsdl2phpgenerator:generate              Provides wsdl2phpgenerator/wsdl2phpgenerator as a command on your Symfony Project.

命令使用选项

$ php bin/console wsdl2phpgenerator:generate --help
Options:
  -i, --input=INPUT                     Input WSDL URL [Required*]
  -o, --output=OUTPUT                   Output Directory for self generated classes [Required*]
      --namespace[=NAMESPACE]           Class Namespace "Class\Example"
  -p, --proxy[=PROXY]                   URL-like format proxy settings
      --shared-types                    sharedTypes option set to true
      --constructorParamsDefaultToNull  constructorParamsDefaultToNull value set to true