We need to provide an adapter to work properly with our API.
See:
EZP-21707 Provide a way to do pagination in twig
EZP-21529 As a DemoBundle user I need access to native paging support
Documentation
Pagerfanta bundle
Pagerfanta lib
PR