Skip to content

v1.2.0

Compare
Choose a tag to compare
@jwadhams jwadhams released this 19 Aug 14:15
· 3 commits to development since this release
066cd42

This release separates the method that get a Guzzle Client, which would allow one request class to use a different Guzzle Client than the main dependency injector. This is especially useful if you have a one Request that needs to use mocked responses even in production, while the requests around it are making real HTTP calls.

This also deprecated the private method MocksGuzzleInstance::mockGuzzleAppInstanceWithHandler and added a new public GuzzleTapper::makeMockedGuzzleClient since it's now practical to make a one-off Guzzle client inside a request's getGuzzleClient