<?php
namespace App\Controller\Front;
use App\Entity\Team;
use App\Service\AccessClientService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Doctrine\ORM\EntityManagerInterface;
class MemberSingleController extends AbstractController
{
/**
* @Route("/member/{slug}", name="app_front_member_single")
*/
public function memberSingle(AccessClientService $accessClientService, Team $member, EntityManagerInterface $entityManager): Response
{
$accessClientService->handleAccessControl();
return $this->render('front/member_single/member.html.twig', [
'member' => $member
]);
}
}