src/Controller/ServiceController.php line 45

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("/service", defaults={"_fragment" = "about"}, name="app_service")
  10. */
  11. public function index(): Response
  12. {
  13. return $this->render('index/index.html.twig', [
  14. 'controller_name' => 'ServiceController',
  15. ]);
  16. }
  17. /**
  18. * @Route("/service/saas", name="service_saas")
  19. */
  20. public function saas(): Response
  21. {
  22. return $this->render('service/saas.html.twig', [
  23. 'produit' => 2,
  24. ]);
  25. }
  26. /**
  27. * @Route("/service/mobileapp", name="service_app")
  28. */
  29. public function app(): Response
  30. {
  31. return $this->render('service/app.html.twig', [
  32. 'produit' => 2,
  33. ]);
  34. }
  35. /**
  36. * @Route("/service/web", name="service_web")
  37. */
  38. public function web(): Response
  39. {
  40. return $this->render('service/web.html.twig', [
  41. 'produit' => 2,
  42. ]);
  43. }
  44. }