log = $log; $this->response = $response; } /** * @return Response */ public function index(Request $request): Response { $search = $request->input('search'); $entries = $this->log->filter($search); return $this->response->withView( 'admin/log.twig', ['entries' => $entries, 'search' => $search] ); } }