getAudits(); $this->view->setVar('pager', $pager); } /** * @Get("/{id:[0-9]+}/show", name="admin.audit.show") */ public function showAction($id) { $auditService = new AuditService(); $audit = $auditService->getAudit($id); $this->view->setVar('audit', $audit); } }