You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I add a new option "All entries" when in Pagerfanta class we have method like:
private function checkMaxPerPage($maxPerPage)
{
if (!is_int($maxPerPage)) {
throw new NotIntegerMaxPerPageException();
}
if ($maxPerPage < 1) {
throw new LessThan1MaxPerPageException();
}
}
I think, better way and good solution to change private to protected, than we can override this method to add custom logic.
Now I should check in my controller if perPage is string.
Thank You.
The text was updated successfully, but these errors were encountered:
@sidz this would mean that adapters would know about this special value in their implementation, which is not the case. So even if you overwrite the Pagerfanta method, you would still be breaking the Pagerfanta contract for adapters, thus breaking them
Hi.
How can I add a new option "All entries" when in Pagerfanta class we have method like:
I think, better way and good solution to change private to protected, than we can override this method to add custom logic.
Now I should check in my controller if perPage is string.
Thank You.
The text was updated successfully, but these errors were encountered: