This PR replaces the Factory with the now simplified Client constructor:
// old
$factory = new Factory($loop);
$factory->createClient($wsdl)->then(function (Client $client) {
// client ready
…
});
// new
$browser = new Browser($loop);
$browser->get($wsdl)->then(function (ResponseInterface $response) use ($browser) {
$client = new Client($browser, (string)$response->getBody());
// client ready
…
});
// old
$factory = new Factory($loop);
$client = $factory->createClientFromWsdl($wsdl);
// new
$browser = new Browser($loop);
$client = new Client($browser, $wsdl);
Among others, this is also a prerequisite for non-WSDL mode (#5) and additional SOAP options.
Builds on top of #26 and #30.
Supersedes / closes #15.
This PR replaces the
Factory
with the now simplifiedClient
constructor:Among others, this is also a prerequisite for non-WSDL mode (#5) and additional SOAP options. Builds on top of #26 and #30. Supersedes / closes #15.