Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] [HttpClient] Make responsefactory configurable per client #52257

Open
@tarjei

Description

@tarjei

Description

This issue refs #51913. I would like to take a stab at making it possible to define the responsefactory on a per service level in the http_client.yaml file:

framework:
  http_client:
    scoped_clients:
      apiServiceClient:
        mock_response_factory: "acme_mock_factory"

Two questions:

  1. I think I need some pointers to which files I should edit to parse the config and setup a mockhttpclient for the service.
  2. Is the configuration ok? I.e. mock_response_factory ?

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions