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
I was thinking about making the OpenApiPaginator accessible to be used on other methods that use pagination,
also adding a possibility to extend it and adding custom parameters, for instance i would like to add an order parameter that sorts by an array because currently it only allows sorting by one field.
so at least we would need the definePagination function to be protected
what do you think?
protected function definePagination(): void
{
parent::definePagination();
$this->pushOrderParameter();
}
private function pushOrderParameter()
{
}
The text was updated successfully, but these errors were encountered:
Yeah I think making paginator available on non-index methods is a good idea. When I originally developed this, given the amount of code necessary, only having it work on index() methods was a compromise. Unfortunately I haven't ever gotten around to it.
I was thinking about making the OpenApiPaginator accessible to be used on other methods that use pagination,
also adding a possibility to extend it and adding custom parameters, for instance i would like to add an order parameter that sorts by an array because currently it only allows sorting by one field.
so at least we would need the definePagination function to be protected
what do you think?
The text was updated successfully, but these errors were encountered: