24 lines
570 B
PHP
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,
|
|
]);
|
|
}
|
|
}
|