<?php declare(strict_types=1);
namespace PPApi\Controller;
use PlnaPenezenka\PPSDKBundle\Doctrine\Entity\Web;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class IndexController extends AbstractController
{
function __construct(private Web $current_web)
{
}
#[Route('/', methods: 'GET')]
function index(): Response
{
return $this->render('index.html.twig', ['web' => $this->current_web]);
}
}