<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\ORM\EntityManagerInterface;
use App\Entity\Compra;
class WebController extends AbstractController {
/**
* @Route("/", name="app_index")
*/
public function index(): Response {
return $this->render('web/index.html.twig');
}
/**
* @Route("/seguridad", name="app_web_seguridad")
*/
public function seguridad(): Response {
return $this->render('web/seguridad.html.twig');
}
/**
* @Route("/loks", name="app_web_loks")
*/
public function loks(EntityManagerInterface $em): Response {
$compras = $em->getRepository(Compra::class)->findAll();
return $this->render('web/loks.html.twig', ['compras' => $compras]);
}
/**
* @Route("/contacto", name="app_web_contacto")
*/
public function contacto(): Response {
return $this->render('web/contacto.html.twig');
}
/**
* @Route("/tienda", name="app_web_tienda")
*/
public function tienda(): Response {
return $this->render('web/tienda.html.twig');
}
/**
* @Route("/test2", name="app_web_test2")
*/
public function test2(): Response {
return $this->render('web/test2.html.twig');
}
}