-
Notifications
You must be signed in to change notification settings - Fork 39
Remove direct dependency on php-http/message-factory #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
this could be a bit disruptive in legacy applications. how about we just do a version 2 of php-http/message where we drop the dependency and all deprecated code we have here in message? |
the solution is trivial: run the command mentioned in the exception message |
Now that |
PR rebased. |
alright, lets do this. |
This appears to break existing applications. We now get this exception in Contao when installing composer dependencies.
|
Note:
|
the exception message in discovery seems wrong, it should explicitly talk about php-http/message-factory and not just php-http/message. the quickfix for contao would be to require php-http/message-factory explicitly. the better fix would be to switch to the PSR-17 message factories instead of the httplug message factories. but depending on where those factories are used in contao, this could be a BC break for contao. |
@dbu But
They are not used by us at all. This error happens through a transient dependency ( |
@fritzmg damn, then its me again :/ will fix that in FriendsOfSymfony/FOSHttpCache#543 i (or some contributor) should upgrade FOSHttpCache to use the PSR-17 mesage factories as it still relies on the legacy php-http message factories. |
should be fixed now https://github.com/FriendsOfSymfony/FOSHttpCache/releases/tag/2.15.1 |
Works, thank you :) |
php-http/message-factory
contains only deprecated interfaces. It'd be great to not force users of this lib to install it. Note that all concerned classes are already deprecated since years.