When we implemented SafeString we had to cast to string because of JSON encoding. I didn't know about \JsonSerializable interface which would allow us to not string cast.
Beta evaluation: Followup from the critical #2506581: Remove SafeMarkup::set() from Renderer::doRender
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2559969.8.patch | 10.32 KB | alexpott |
| #8 | 5-8-interdiff.txt | 1.59 KB | alexpott |
| #5 | 2559969.5.patch | 10.32 KB | alexpott |
| #5 | 2-5-interdiff.txt | 1.58 KB | alexpott |
| #2 | 2559969.2.patch | 11.9 KB | alexpott |
Comments
Comment #2
alexpottComment #3
catchDamn.
Comment #5
alexpottSo we still need the serializer because serialization is more generic than just JSON.
I think this patch helps people who try to implement an Ajax command using the core framework lose less hair.
Comment #6
joelpittetBig +1
To test I used simpletest to try out things that I expected would use commands. Including quick edit, views dialog/modals and toolbar all work.
Also reviewed the code as well.
Comment #7
wim leersInteresting!
Nit: s/serialisation/serialization/ — can be fixed on commit.
Comment #8
alexpottThanks @Wim Leers
Comment #9
catchCommitted/pushed to 8.0.x, thanks!