thephpleague / fractal

Output complex, flexible, AJAX/RESTful data structures.
fractal.thephpleague.com
MIT License
3.53k stars 349 forks source link

Paginators as part of meta #361

Open fabiocarneiro opened 7 years ago

fabiocarneiro commented 7 years ago

I think the library is being opinionated about paginators being displayed as part of meta. I understand this might be true in most of the cases, but even in that cases, I might want my paginator links to be merged with the root links.

There is no need to keep those concepts tied together. If eventually you would want your paginators to be inside meta, you can return in the paginator array the same structure that is returned in the meta, and they would be eventually merged.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 4 weeks if no further activity occurs. Thank you for your contributions.