terrarium-web/src/Controller/EventController.php
2020-03-21 18:39:12 +01:00

24 lines
570 B
PHP

<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Filesystem\Filesystem;
use App\Motion\SnapshotRepository;
class EventController extends AbstractController
{
/**
* @Route("/events", name="events")
*/
public function events(SnapshotRepository $snapshotRepository)
{
$snapshots = $snapshotRepository->find();
return $this->render('events.html.twig', [
'snapshots' => $snapshots,
]);
}
}