dingo / api

A RESTful API package for the Laravel and Lumen frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding custom formatter to app.php Lumen not working

shr3jn opened this issue · comments

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);