upgrade to new search interface

This commit is contained in:
Julien Fastré 2018-09-10 14:21:20 +02:00
parent 84c22fcf59
commit 74bb2b3e51

View File

@ -78,7 +78,7 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface
return false;
}
public function renderResult(array $terms, $start = 0, $limit = 50, array $options = array())
public function renderResult(array $terms, $start = 0, $limit = 50, array $options = array(), $format = 'html')
{
return $this->container->get('templating')->render('ChillReportBundle:Search:results.html.twig', array(
'reports' => $this->getReports($terms, $start, $limit),
@ -178,7 +178,7 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface
return $whereElement;
}
public function supports($domain)
public function supports($domain, $format = 'html')
{
return $domain === 'report';
}