src/Controller/AdminController.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class AdminController extends AbstractController
  7. {
  8.     #[Route('/admin'name'app_admin')]
  9.     public function index(): Response
  10.     {
  11.         return $this->render('admin/index.html.twig', [
  12.             'controller_name' => 'AdminController',
  13.         ]);
  14.     }
  15.     #[Route('/random'name'app_random')]
  16.     public function random(): Response
  17.     {
  18.         return $this->render('admin/random.html.twig', [
  19.             'controller_name' => 'AdminController',
  20.         ]);
  21.     }
  22. }