<?php
namespace App\Controller;
use App\Repository\Localization\TranslationRepository;
use App\Service\Report\GetDashboard;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route(
* path="/",
* name="app_dashboard"
* )
*/
class DashboardController extends AbstractController
{
/**
* @Route(
* "",
* methods={"GET"},
* name="",
* )
*/
public function indexAction(GetDashboard $getDashboard, TranslationRepository $translationRepository)
{
return $this->render('dashboard.html.twig', [
'dashboard' => $getDashboard->execute(),
'pendingTranslations' => $translationRepository->paginatePending(1, 10)
]);
}
}