goetas-webservices / soap-client

PHP implementation of SOAP 1.1 and 1.2 client specifications
MIT License
175 stars 28 forks source link

Problems with Symfony 4.3 #40

Closed pbowyer closed 4 years ago

pbowyer commented 5 years ago

I installed the library inside a Symfony 4.3 project using composer. When I run the generate command I get:

In Container.php line 263:

  The "goetas_webservices.wsdl2php.wsdl_reader" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.

generate [--dest-class DEST-CLASS] [--] <config> <dest-dir>

Tried adding a few things to my services.yaml config but not made it work.

My composer.json is:

{
  "type": "project",
  "license": "proprietary",
  "require": {
    "php": "^7.1.3",
    "ext-ctype": "*",
    "ext-iconv": "*",
    "goetas-webservices/soap-client": "^0.2.8",
    "php-http/guzzle6-adapter": "^1.0",
    "php-http/message": "^1.0",
    "guzzlehttp/psr7": "^1.3",
    "symfony/console": "4.3.*",
    "symfony/dotenv": "4.3.*",
    "symfony/flex": "^1.3.1",
    "symfony/framework-bundle": "4.3.*",
    "symfony/yaml": "4.3.*"
  },
  "require-dev": {
    "goetas-webservices/wsdl-reader": "^0.3.5",
    "goetas-webservices/wsdl2php": "^0.4.3",
    "roave/security-advisories": "dev-master"
  },
  "config": {
    "preferred-install": {
      "*": "dist"
    },
    "sort-packages": true
  },
  "autoload": {
    "psr-4": {
      "App\\": "src/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "App\\Tests\\": "tests/"
    }
  },
  "replace": {
    "paragonie/random_compat": "2.*",
    "symfony/polyfill-ctype": "*",
    "symfony/polyfill-iconv": "*",
    "symfony/polyfill-php71": "*",
    "symfony/polyfill-php70": "*",
    "symfony/polyfill-php56": "*"
  },
  "scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd"
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ]
  },
  "conflict": {
    "symfony/symfony": "*"
  },
  "extra": {
    "symfony": {
      "allow-contrib": false,
      "require": "4.3.*"
    }
  }
}
goetas commented 5 years ago

See https://github.com/goetas-webservices/soap-client/pull/41, help is welcome