. */ namespace App\Controller; use App\Services\StatisticsHelper; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class StatisticsController extends AbstractController { /** * @Route("/statistics", name="statistics_view") * @return Response */ public function showStatistics(StatisticsHelper $helper): Response { $this->denyAccessUnlessGranted('@tools.statistics'); return $this->render('/Statistics/statistics.html.twig', [ 'helper' => $helper, ]); } }