Skip to content

Switch to Doctrine's Pager #991

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

Closed
wants to merge 3 commits into from
Closed

Switch to Doctrine's Pager #991

wants to merge 3 commits into from

Conversation

javiereguiluz
Copy link
Member

Pagerfanta library could be soon be unmaintained: whiteoctober/Pagerfanta#278

Let's switch to Doctrine Pager.

@javiereguiluz
Copy link
Member Author

@stof thanks for your review! I've changed some things thanks to your review.

@Pierstoval
Copy link

Great change! Straightforward, clear, customizable…

Now to all questions like "How to create a paginator?", just need to answer "Look at Symfony Demo" 👍

@JarJak
Copy link

JarJak commented Jun 28, 2019

It would be better if createPaginator would return a paginator object, not just an array. It will help with debugging, IDE suggesting, types control etc.

@bocharsky-bw
Copy link
Contributor

I think PhpStorm IDE should figure out those array keys and suggest autocompleting for them... Not sure about autocompleting in Twig templates but it should work in PHP files as far as I know. But agree, paginator object will give us more strict format for this

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.

5 participants