mailhog-client icon indicating copy to clipboard operation
mailhog-client copied to clipboard

Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.

Open fundo-moretti opened this issue 1 year ago • 2 comments

Package php-http/message-factory has been archived on May 13, 2023, it is suggested to use psr/http-factory instead.

fundo-moretti avatar May 17 '23 06:05 fundo-moretti

Releated to this - I am seeing the following error when using this extension:

No php-http message factories found. Note that the php-http message factories are deprecated in favor of the PSR-17 message factories. To use the legacy Guzzle, Diactoros or Slim Framework factories of php-http, install php-http/message and php-http/message-factory and the chosen message implementation.  

I can resolve this by requiring php-http/message - I'm not sure if other upstream dependencies changed to remove this at some stage.

Not wanting to hijack this issue as it seems this problem might be resolved by using psr/http-factory as well

ericgsmith avatar Nov 07 '23 21:11 ericgsmith

I just made a PR to fix this problem

thibaut-algrin avatar Dec 07 '23 10:12 thibaut-algrin

I can see that the PR: https://github.com/rpkamp/mailhog-client/pull/58 has been merged, but we need a new release to get those changes.

  Problem 1
    - rpkamp/mailhog-behat-extension is locked to version 1.1.0 and an update of this package was not requested.
    - rpkamp/mailhog-behat-extension 1.1.0 requires rpkamp/mailhog-client ^1.0 -> found rpkamp/mailhog-client[1.0.0] but it conflicts with your root composer.json require (dev-master#18c3af6fe0d2415b691a106ade77a9a75acf8b21).

Would it be possible to create a new release for mailhog-client and require the same version in mailhog-behat-extension?

Thank you!

isaacrodriguezcubells avatar Feb 13 '24 09:02 isaacrodriguezcubells

Tagged as 2.0 now. A new version of mailhog-behat-extention will be released shortly with support for mailhog-client 2.0.

rpkamp avatar Mar 02 '24 12:03 rpkamp