src/Controller/IndexController.php line 16

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace PPApi\Controller;
  3. use PlnaPenezenka\PPSDKBundle\Doctrine\Entity\Web;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class IndexController extends AbstractController
  8. {
  9.     function __construct(private Web $current_web)
  10.     {
  11.     }
  12.     #[Route('/'methods'GET')]
  13.     function index(): Response
  14.     {
  15.         return $this->render('index.html.twig', ['web' => $this->current_web]);
  16.     }
  17. }