From 74bb2b3e517ccfed2b3f7772fea8017cc51fb33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 10 Sep 2018 14:21:20 +0200 Subject: [PATCH] upgrade to new search interface --- Search/ReportSearch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Search/ReportSearch.php b/Search/ReportSearch.php index e5a80716a..be4063802 100644 --- a/Search/ReportSearch.php +++ b/Search/ReportSearch.php @@ -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'; }