Skip to content

v0.8.0

Compare
Choose a tag to compare
@philsturgeon philsturgeon released this 29 May 14:25
· 364 commits to master since this release

Features

  • Added Serializers with ArraySerializer, DataArraySerializer (default) and a provisional JsonApiSerializer. (#47).
  • Added ResourceAbstract::setMeta('foo', mixed) to allow custom meta data
  • Replaced Manager::setRequestedScopes() with Manager::parseIncludes('foo,bar') which can be an array or CSV string. It can
    also take "Smart Syntax" such as Manager::parseIncludes('bars:limit(5|1):order(-something)'), which can come from a URL query
    param: /foo?include=bars:limit(5|1):order(-something).
  • Made all pagination (paginators and cursors) use meta output logic, so it sits with your custom meta data
  • Moved League\Fractal\Cursor\Cursor and League\Fractal\Cursor\CursorInterface into League\Fractal\Pagination.