Update PaginateElasticaQuerySubscriber.php
This commit is contained in:
parent
7c6fe4eaab
commit
196aed6630
|
@ -21,6 +21,10 @@ class PaginateElasticaQuerySubscriber implements EventSubscriberInterface
|
|||
if (null != $facets) {
|
||||
$event->setCustomPaginationParameter('facets', $facets);
|
||||
}
|
||||
$aggregations = $results->getAggregations();
|
||||
if (null != $aggregations) {
|
||||
$event->setCustomPaginationParameter('aggregations', $aggregations);
|
||||
}
|
||||
|
||||
$event->stopPropagation();
|
||||
}
|
||||
|
@ -32,4 +36,4 @@ class PaginateElasticaQuerySubscriber implements EventSubscriberInterface
|
|||
'knp_pager.items' => array('items', 1)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue