src/Controller/Front/MemberSingleController.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use App\Entity\Team;
  4. use App\Service\AccessClientService;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Request;
  7. use Symfony\Component\HttpFoundation\Response;
  8. use Symfony\Component\Routing\Annotation\Route;
  9. use Doctrine\ORM\EntityManagerInterface;
  10. class MemberSingleController extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/member/{slug}", name="app_front_member_single")
  14.      */
  15.     public function memberSingle(AccessClientService $accessClientServiceTeam $memberEntityManagerInterface $entityManager): Response
  16.     {
  17.         $accessClientService->handleAccessControl();
  18.         return $this->render('front/member_single/member.html.twig', [
  19.             'member' => $member
  20.         ]);
  21.     }
  22. }