samson / simplerknppaginator-bundle
Installs: 333
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/samson/simplerknppaginator-bundle
Requires
- data-dog/pager-bundle: ^0.2.4
This package is not auto-updated.
Last update: 2025-10-09 05:03:53 UTC
README
KNP Paginator Eventsubscriber to paginate stuff fast.
How it works
The class SimplerPaginationSubscriber
is a listener on the 'knp_pager.items'
-event.
Internally it uses the DataDogPagerBundle
to count and slice the resultsets.
Usage
At the moment the SimplerPaginationSubscriber
is only a service and is not connected to Symfony's event-system. This can easily be achieved by extending this bundle and writing a CompilerPass
.
For now it can be used like this, e.g. in your Controller:
$this->get('knp_paginator')->subscribe($this->get('samson_simple_knppaginator.subscriber.simpler_pagination_subscriber')); $this->get('knp_paginator')->paginate($qb... );