The below guide will assist in upgrading from the 3.x versions to 4.0.
- Symfony 5.4 or 6.2+
- PHP 8.1 or later
- Pagerfanta 3.7 or later
- A
Symfony\Component\PropertyAccess\PropertyAccessorInterface
is now required inBabDev\PagerfantaBundle\RouteGenerator\RequestAwareRouteGeneratorFactory
andBabDev\PagerfantaBundle\RouteGenerator\RouterAwareRouteGenerator
- The default Twig template is now
@BabDevPagerfanta/default.html.twig
- Services which had public visibility deprecated are now private
- The
pagerfanta.view_factory
service is now an instance ofBabDev\PagerfantaBundle\View\ContainerBackedImmutableViewFactory
instead ofPagerfanta\View\ViewFactory
, which makes the view factory immutable at runtime. To use a mutable view factory, replace thepagerfanta.view_factory
service definition before theBabDev\PagerfantaBundle\DependencyInjection\CompilerPass\RegisterPagerfantaViewsPass
compiler pass is run.
- The
Pagerfanta\View\ViewFactory
service alias has been removed, use either thePagerfanta\View\ViewFactoryInterface
alias or thepagerfanta.view_factory
ID - The
babdev_pagerfanta.default_twig_template
andbabdev_pagerfanta.default_view
container parameters have been removed