- Calling
Pagerfanta::setMaxPerPage()
should not reset the number of results - Avoid using deprecated
Doctrine\DBAL\Query\QueryBuilder::execute()
when able - #38 Add
#[\ReturnTypeWillChange]
attribute to disable PHP 8.1 deprecation notices
- Add generics annotations
- Fix the Tailwind Twig template using a hardcoded English string
- Add Bootstrap 5 PHP and Twig templates
- Add doc blocks to improve static analysis
- Add support for setting a maximum number of pages
- Add
doctrine/dbal
3.0 support
- Deprecated
Pagerfanta\View\Template\Template::$defaultOptions
, use thePagerfanta\View\Template\Template::getDefaultOptions()
method instead - Allow install on PHP 8
- Add
solarium/solarium
6.0 support
- Add
Pagerfanta\RouteGenerator\RouteGeneratorFactoryInterface
representing a PHP class which builds a route generator at runtime - Add
Pagerfanta\RouteGenerator\RouteGeneratorInterface
representing a PHP class fulfilling the route generator requirements - Added Twig integration
- Restructured package to support subtree splits, individual adapters and the core API may now be installed separately
- Undeprecated
Pagerfanta\PagerfantaInterface
- Change Composer package back to
pagerfanta/pagerfanta
- Mark exceptions that are removed in 3.0 as deprecated
- Remove types from
Pagerfanta\View\View
signatures
- B/C Break Return typehints added to
Pagerfanta\View\Template\DefaultTemplate
, subclasses will need to be updated to account for this change - Added runtime deprecations for views when receiving a deprecated
Pagerfanta\PagerfantaInterface
implementation without being aPagerfanta\Pagerfanta
subclass - Added a new
Pagerfanta\View\View
class which views can extend to re-use the pagination calculation logic - Added a new
Pagerfanta\View\TemplateView
class which views that renderPagerfanta\View\Template\TemplateInterface
instances can extend to re-use template related logic - A
Pagerfanta\Exception\InvalidArgumentException
is now raised when the$routeGenerator
is not a callable, as of 3.0 all methods will typehint the requirement - Deprecated
Pagerfanta\Adapter\MandangoAdapter
, the dependent package is abandoned - Deprecated
Pagerfanta\Adapter\PropelAdapter
andPagerfanta\Adapter\Propel2Adapter
- Deprecated
Pagerfanta\Adapter\MongoAdapter
as it relies on the olderext/mongo