maurobonfietti / slim4-api-skeleton

Useful skeleton for RESTful API development with PHP and Slim 4.
http://bit.ly/2nNNOZi
MIT License
132 stars 32 forks source link

Change helper withJson for ResponseFactory and optimice composer.json #68

Closed GoldraK closed 2 years ago

GoldraK commented 2 years ago

A ResponseFactory has been created to add the Response withJson and removed the old one, now the responses with JSON are performed as follows:

return $response->withJson($message);

The composer.json has been changed so that it does not load the tests in production and lighten the load.

maurobonfietti commented 2 years ago

Thank you @GoldraK ! 😄