
laravel-crud-wizard-decorator-free
Versions 2.0.0 of laravel-crud-wizard-decorator-free and version 7.1.0 of laravel-crud-wizard-free introduce an important response time improvement by eliminating useless json_decode and json_encode calls between the controller and the middlewares.
Because the controller resolves the JsonResponse from DI , the CrudProvider registers a binding for it in which the json_encode is skipped when the data needs decoration.
This follows Maravel-Framework’s design of DI first logic and it works also in Laravel and Lumen.
Until now, each request got decoded and encoded in the decorator and in the UnescapedJsonMiddleware just before the response was sent because it was a global middleware leading to useless decoding and encoding that increased the response time.
The UnescapedJsonMiddleware behavior was kept in the binding logic so, it should not be used anymore!
Top comments (0)