src/Ship/UI/Web/Controllers/IndexController.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Ship\UI\Web\Controllers;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\HttpKernel\Attribute\AsController;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Component\HttpFoundation\Request;
  8. #[AsController]
  9. class IndexController extends AbstractController
  10. {
  11.     #[Route(
  12.         path'/'
  13.     )]
  14.     public function __invoke(Request $request): Response
  15.     {
  16.         return $this->render('Ship/Templates/Index.html.twig');
  17.     }
  18. }