function history($id, Request $request, Application $app) { $this->build($id, $request, $app); $hrb = new HistoryRepositoryBuilder(); $hrb->setAPI2Application($this->parameters['api2Application']); $this->parameters['historyItems'] = $hrb->fetchAll(); return $app['twig']->render('sysadmin/api2app/history.html.twig', $this->parameters); }