Skip to content

Added a Paginator object based on Doctrine's paginator #1006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2019
Merged

Added a Paginator object based on Doctrine's paginator #1006

merged 1 commit into from
Jul 24, 2019

Conversation

javiereguiluz
Copy link
Member

The current code uses an array to provide the pagination information. We did that as part of the quick proof-of-concept replacement of Pagerfanta library.

This PR proposes to replace that array by a proper object. The new design was based on the one proposed by EasyAdmin to also replace Pagerfanta (EasyCorp/EasyAdminBundle#2777).

@mazarini
Copy link

mazarini commented Jul 4, 2019

Hi,
Do you think it's possible to make it as a bundle (ie demo-bundle). It can introduice the way to tell how to make and test a bundle with bests practices.

Thank for symfony/demo. I learn so many with it.

@javiereguiluz javiereguiluz merged commit 7a9e13e into symfony:master Jul 24, 2019
javiereguiluz added a commit that referenced this pull request Jul 24, 2019
…(javiereguiluz)

This PR was squashed before being merged into the master branch (closes #1006).

Discussion
----------

Added a Paginator object based on Doctrine's paginator

The current code uses an array to provide the pagination information. We did that as part of the quick proof-of-concept replacement of Pagerfanta library.

This PR proposes to replace that array by a proper object. The new design was based on the one proposed by EasyAdmin to also replace Pagerfanta (EasyCorp/EasyAdminBundle#2777).

Commits
-------

7a9e13e Added a Paginator object based on Doctrine's paginator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants