You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changes
#31 Add missing tests: RequestTask and Client with a mocked HTTP client, MissingClientException, bundle and DI extension.
#39 Add Client::getUri(), deprecate the misspelled geUri(); type MissingClientException::create(). Update documentation, add tests.
#33 Give the ids of both services in the error on duplicate client codes: the clients are registered by a compiler pass of the bundle, ClientRegistry::addClient() gets an optional $serviceId argument. Update documentation, add tests.
Fixes
#35 Fix RequestTask: a 3xx / 4xx / 5xx status code listed in valid_response_code outputs the response body (the task still failed). Update documentation, add tests.
#36 Fix RequestTask: log transport errors (the log was lost, reading the response details threw again). Update documentation, add tests.
#37 Fix RequestTask log_response: log the requested URL, and the status code, headers and content of the response (instead of the configured URL and the response object). Update documentation, add tests.
#38 Fix RequestTask: throw an explicit \UnexpectedValueException on a non-array input; Client: convert scalar URL parameters to strings (a TypeError was triggered). Update documentation, add tests.