Register json middleware#1331
Conversation
|
OMG @mollerhoj thank you for pointing this out, I'm surprised we didn't catch this before! |
|
@mollerhoj I'm unable to commit 😢, could you see if the "allow edits by maintainers" checkbox is enabled on the right? |
|
It is :-) Now that I have your attention: I'm reading through this gem, and I can't seem to understand what the point of this registry and the adapter registry is. Why not just add the middlewares classes directly to the connection with something like: The registry seems to add needless complexity (and apparently race conditions #1065). Is there a good reason for it I just do see? |
|
For some reason I can't commit on your branch in any way 🤔 Could you cherry-pick or replicate this commit into your PR?
This is mostly for legacy support, and you correctly pointed out is not necessary at all. |
Done.
Okay, I see, thank you for the explanation. |
|
Thanks @mollerhoj, but I think you accidentally force-pushed only my commit on your branch, I didn't include your change in my commit as well because it was supposed to be added 😄 |
I was quite surprised to realize I had to do register this middleware manually, as I didn't have to do that for the other middleware in core.
|
Ah, good catch! All good now? |
iMacTia
left a comment
There was a problem hiding this comment.
All good! Thanks again for fixing this 🙌!
And thanks for using the main branch in your projects.
This type of "edge release" feedback in incredibly useful to us 🙏
(cherry picked from commit 5366029)


I was quite surprised to realize I had to do register this middleware manually, as I didn't have to do that for the other middleware in core.