You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.
I'm thinking that instead of encoding the body every time new data is set on the JsonResponse class to instead have some sort of preparation before sending based on whether the class implements the JsonSerializable interface or not. Maybe some sort of middleware layer? Not sure.
The text was updated successfully, but these errors were encountered:
The
Paulus\Response\JsonResponse
should implement the newly available (since PHP 5.4) JsonSerializable class.I'm thinking that instead of encoding the body every time new data is set on the
JsonResponse
class to instead have some sort of preparation before sending based on whether the class implements theJsonSerializable
interface or not. Maybe some sort of middleware layer? Not sure.The text was updated successfully, but these errors were encountered: