render('charts.html.twig'); } /** * @Route("/camera", name="camera") */ public function camera(SnapshotRepository $snapshotRepository) { $snapshots = $snapshotRepository->find(); return $this->render('camera.html.twig', [ 'snapshots' => $snapshots, ]); } }