laminas / laminas-diactoros

PSR HTTP Message implementations
https://docs.laminas.dev/laminas-diactoros/
BSD 3-Clause "New" or "Revised" License
470 stars 62 forks source link

CLI command to register diactoros as pinned for `php-http/discovery` #143

Open boesing opened 1 year ago

boesing commented 1 year ago

Feature Request

Q A
New Feature yes

Summary

With the most recent php-http/discovery v1.17.0 it is possible to pin PSR-17 and/or PSR-18 implementations in projects. I'd love to have a laminas-cli command which does that registration for me so that I do not have to do it manually.

The CLI command should:


**Example JSON configuration***

{
    "extra": {
        "discovery": {
            "Psr\\Http\\Message\\RequestFactoryInterface": "Laminas\\Diactoros\\RequestFactory",
            "...": "..."
        }
    }
}
Xerkus commented 1 week ago

This will bring too many dependencies. If done it would have to be a satellite package.