Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Add PSR-17 factory support #1

@mindplay-dk

Description

@mindplay-dk

I've been looking at PSR-18 implementations, and this looks like exactly the sort of thing I was hoping for :-)

My only issue is the dependency on a specific PSR-7 implementation.

Would you consider adding support for PSR-17 factory interfaces?

If so, I might contribute a PR.

But I wanted to check with you first, because I figured maybe having no constructor dependencies for the client itself was a stated goal for you?

(It wouldn't matter to me personally, because everything we build uses constructor injection - we already have PSR-17 factories in our standard container registrations, and intend to register your client implementation as the default service behind the PSR-18 interface.)

Introducing it would be a breaking change, since the factories would need to be provided as constructor arguments to the client.

Let me know if you're interested? :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions