Resolver/PaginatorAnnotationResolver.php
private function evaluateAttributes(
        Request $request,
        CreatePaginator $annotation,
        DoctrinePaginator $paginator,
        int $limitPerPage,
        int $page
    ) {
        if ($annotation->getAttributes()) {
            $total = $paginator->count();
            $paginatorAttributes = new PaginatorAttributes(
                (int) ceil($total / $limitPerPage),
                $total,
                $page,
                $limitPerPage
            );

            $request->attributes->set(
                trim($annotation->getAttributes()),
                $paginatorAttributes
            );
        }
    }
private function evaluateAttributes(
        Request $request,
        CreatePaginator $annotation,
        DoctrinePaginator $paginator,
        int $limitPerPage,
        int $page
    ) {
        if ($annotation->getAttributes()) {
            $total = $paginator->count();
            $paginatorAttributes = new PaginatorAttributes(
                (int) ceil($total / $limitPerPage),
                $total,
                $page,
                $limitPerPage
            );

            $request->attributes->set(
                trim($annotation->getAttributes()),
                $paginatorAttributes
            );
        }
    }
private function evaluateAttributes ( Request $ request , CreatePaginator $ annotation , DoctrinePaginator $ paginator , int $ limitPerPage , int $ page ) { if ( $ annotation -> getAttributes ( ) ) { $ total = $ paginator -> count ( ) ; $ paginatorAttributes = new PaginatorAttributes ( ( int ) ceil ( $ total / $ limitPerPage ) , $ total , $ page , $ limitPerPage ) ; $ request -> attributes -> set ( trim ( $ annotation -> getAttributes ( ) ) , $ paginatorAttributes ) ; } }
Evaluates Paginator attributes.

@param Request           $request
@param CreatePaginator   $annotation
@param DoctrinePaginator $paginator
@param int               $limitPerPage
@param int               $page
Evaluates Paginator attributes .