KnpLabs/knp-components — pull request #42 by dancannon (2013-01-20 13:15:16+00:00)
Title: Added solarium result to returned object.

The Solarium subscriber now returns the solarium result object via the custom parameters.

This allows you to access facets which is not otherwise possible when using the paginator.

An example of this would be as follows:

```php
try {
$paginator = $this->get('knp_paginator');
$pagination = $paginator->paginate(
array($solarium, $select),
$request->query->get('page', 1),
$request->query->get('limit', 20)
);
$pagination->setTemplate('WebIlluminationSiteBundle:Includes:pagination.html.twig');
$pagination->setSortableTemplate('WebIlluminationSiteBundle:Includes:sortable.html.twig');

$facets = $pagination->getCustomParameter('result')->getFacetSet();
} catch (\Solarium_Client_HttpException $e) {
throw new HttpException(500, 'There seems to be an issue with our search engine. Please check later.');
}
```