Skip to content

Commit

Permalink
Formats and aligns some comments for nicer readability
Browse files Browse the repository at this point in the history
  • Loading branch information
thr3-arendt committed Oct 4, 2024
1 parent c7df3d8 commit 9cb2f2e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ knp_paginator:
filter_value_name: filterValue # filter value query parameter name
template:
pagination: '@KnpPaginator/Pagination/sliding.html.twig' # sliding pagination controls template
rel_links: '@KnpPaginator/Pagination/rel_links.html.twig' # <link rel=...> tags template
rel_links: '@KnpPaginator/Pagination/rel_links.html.twig' # <link rel=...> tags template
sortable: '@KnpPaginator/Pagination/sortable_link.html.twig' # sort link template
filtration: '@KnpPaginator/Pagination/filtration.html.twig' # filters template
```
Expand All @@ -105,13 +105,13 @@ return static function (ContainerConfigurator $configurator): void
'sort_direction_name' => 'direction', // sort direction query parameter name
'distinct' => true, // ensure distinct results, useful when ORM queries are using GROUP BY statements
'filter_field_name' => 'filterField', // filter field query parameter name
'filter_value_name' => 'filterValue' // filter value query parameter name
'filter_value_name' => 'filterValue', // filter value query parameter name
],
'template' => [
'pagination' => '@KnpPaginator/Pagination/sliding.html.twig', // sliding pagination controls template
'rel_links' => '@KnpPaginator/Pagination/rel_links.html.twig', // <link rel=...> tags template
'rel_links' => '@KnpPaginator/Pagination/rel_links.html.twig', // <link rel=...> tags template
'sortable' => '@KnpPaginator/Pagination/sortable_link.html.twig', // sort link template
'filtration' => '@KnpPaginator/Pagination/filtration.html.twig' // filters template
'filtration' => '@KnpPaginator/Pagination/filtration.html.twig', // filters template
]
]);
};
Expand Down Expand Up @@ -186,8 +186,8 @@ public function listAction(EntityManagerInterface $em, PaginatorInterface $pagin

$pagination = $paginator->paginate(
$query, /* query NOT result */
$request->query->getInt('page', 1), /*page number*/
10 /*limit per page*/
$request->query->getInt('page', 1), /* page number */
10 /* limit per page */
);

// parameters to template
Expand Down

0 comments on commit 9cb2f2e

Please sign in to comment.