src/Controller/DashboardController.php line 31

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\EventType;
  4. use App\Entity\Partner;
  5. use App\Entity\User;
  6. use App\Repository\BotEventRepository;
  7. use App\Repository\ConversionRepository;
  8. use App\Repository\EventTypeRepository;
  9. use App\Repository\PartnerRepository;
  10. use App\Repository\PostbackRepository;
  11. use App\Repository\RublesExchangeRateRepository;
  12. use App\Repository\TgUserRepository;
  13. use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
  14. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  15. use Symfony\Component\HttpFoundation\Response;
  16. use Symfony\Component\Routing\Annotation\Route;
  17. use Symfony\Contracts\Cache\CacheInterface;
  18. use Symfony\Component\HttpFoundation\JsonResponse;
  19. /**
  20.  * @IsGranted("ROLE_USER")
  21.  */
  22. class DashboardController extends AbstractController
  23. {
  24.     /**
  25.      * @Route("/", name="dashboard")
  26.      */
  27.     public function index(): Response
  28.     {
  29.         return $this->render('dashboard/index.html.twig', []);
  30.     }
  31. }