dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.32k stars 1.25k forks source link

Adding custom formatter to app.php Lumen not working #1729

Open shr3jn opened 4 years ago

shr3jn commented 4 years ago

Registering a custom formatter through bootstrap/app.php is not working for Lumen. Is there anything else that needs to be added besides:

Dingo\Api\Http\Response::addFormatter('json', new Dingo\Api\Http\Response\Format\Jsonp);