Skip to content

Provide virtual package psr/http-client-implementation #56

Closed
@slepic

Description

@slepic

Hello,

since Http\Client\HttpClient extends Psr\Http\Client\ClientInterface, then any implementation of Http\Client\HttpClient also provides implementation of Psr\Http\Client\ClientInterface.

Therefore Http\Mock\Client provides these implementations and so it would be nice if psr/http-client-implementation was also added to composer provide section (like php-http/client-implementation and php-http/async-client-implementation).

I am requesting this change because of this issue: chartmogul/chartmogul-php#76
where we need to change dependency from php-http/client-implementation to psr/http-client-implementation while we want to keep php-http/mock-client to be used for mocking.

I am willing to implement this change, but since it involves just 1 line addition, I think it would be better implemented by maintainers while avoiding the forking burden...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions