src\Controller\Site\ServicesController.php line 30

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Site;
  3. use App\Controller\BaseController;
  4. //use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Cookie;
  7. use Symfony\Component\HttpFoundation\Request;
  8. use Symfony\Component\HttpFoundation\Response;
  9. use Symfony\Component\Routing\Annotation\Route;
  10. use Doctrine\ORM\EntityManagerInterface;
  11. use Knp\Component\Pager\PaginatorInterface;
  12. use App\Form\TypenewsType;
  13. use App\Entity\Service;
  14. class ServicesController extends BaseController
  15. {
  16.     
  17.     
  18.      /**
  19.      * @Route("/Services/{id}", name="servicefront_show", methods={"GET"})
  20.       * @Route("/services/{id}")
  21.      */
  22.     public function showfronts(Service $service): Response
  23.     {
  24.          $status=true;
  25.         return $this->render('site/services/services.html.twig', [
  26.             'service' => $service,
  27.         ]);
  28.     }
  29.     
  30. }