Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Client::withLocation() method #38

Merged
merged 1 commit into from
Nov 6, 2018
Merged

Conversation

clue
Copy link
Owner

@clue clue commented Nov 6, 2018

The withLocation(string $location): self method can be used to
return a new Client with the updated location (URI) for all functions.

Note that this is not to be confused with the WSDL file location.
A WSDL file can contain any number of function definitions.
It's very common that all of these functions use the same location definition.
However, technically each function can potentially use a different location.

$client = $client->withLocation('http://example.com/soap');

assert('http://example.com/soap' === $client->getLocation('echo'));

As an alternative to this method, you can also set the location option
in the Client constructor (such as when in non-WSDL mode).

Builds on top of #7 and #23, thank you @floriansimon1 and @pascal-hofmann!
Builds on top of #32

@clue clue added this to the v0.3.0 milestone Nov 6, 2018
@clue clue merged commit 0b66596 into clue:master Nov 6, 2018
@clue clue deleted the with-location branch November 6, 2018 13:37
@clue clue modified the milestones: v0.3.0, v1.0.0 Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant