Skip to content

v3.2

Choose a tag to compare

@njoubert-cleverage njoubert-cleverage released this 02 Oct 12:46
· 64 commits to main since this release
7929812

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.