Commit 74bb2b3e authored by Julien Fastré's avatar Julien Fastré
Browse files

upgrade to new search interface

parent 84c22fcf
......@@ -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';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment