getToken(); $userConnect = $token?->getUser(); return $this->render('main/index.html.twig', [ 'profile' => $userConnect, ]); } #[Route('/inscription', name: 'inscription')] public function inscription(TokenStorageInterface $tokenStorage): Response { return $this->render('main/inscription.html.twig'); } }