src/Controller/ServiceController.php line 34

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 ServiceController extends AbstractController
  7. {
  8.     /**
  9.      * @Route("/services", name="app_service")
  10.      */
  11.     public function index(): Response
  12.     {
  13.         return $this->render('service/index.html.twig', [
  14.             'controller_name' => 'ServiceController',
  15.         ]);
  16.     }
  17.     /**
  18.      * @Route("/services/building", name="app_service_building")
  19.      */
  20.     public function building_service(): Response
  21.     {
  22.         return $this->render('service/building.html.twig', [
  23.             'controller_name' => 'ServiceController',
  24.         ]);
  25.     }
  26.     /**
  27.      * @Route("/services/industry", name="app_service_industry")
  28.      */
  29.     public function industry_service(): Response
  30.     {
  31.         return $this->render('service/industry.html.twig', [
  32.             'controller_name' => 'ServiceController',
  33.         ]);
  34.     }
  35.     /**
  36.      * @Route("/services/public_work", name="app_service_public_work")
  37.      */
  38.     public function public_work_service(): Response
  39.     {
  40.         return $this->render('service/public_work.html.twig', [
  41.             'controller_name' => 'ServiceController',
  42.         ]);
  43.     }
  44.     /**
  45.      * @Route("/services/office_personal_maintenance", name="app_service_office_personal_maintenance")
  46.      */
  47.     public function office_personal_maintenance_service(): Response
  48.     {
  49.         return $this->render('service/office_personal_maintenance.html.twig', [
  50.             'controller_name' => 'ServiceController',
  51.         ]);
  52.     }
  53.     /**
  54.      * @Route("/services/training", name="app_service_training")
  55.      */
  56.     public function training_service(): Response
  57.     {
  58.         return $this->render('service/training.html.twig', [
  59.             'controller_name' => 'ServiceController',
  60.         ]);
  61.     }
  62. }