Adapted to latest changes in Core Bundle (twig extension for pagination)