diff --git a/components/http_foundation.rst b/components/http_foundation.rst index 3df8d5c9c94..a66baa7609d 100644 --- a/components/http_foundation.rst +++ b/components/http_foundation.rst @@ -252,8 +252,10 @@ Accessing the Session ~~~~~~~~~~~~~~~~~~~~~ If you have a session attached to the request, you can access it via the -:method:`Symfony\\Component\\HttpFoundation\\Request::getSession` method or the -:method:`Symfony\\Component\\HttpFoundation\\RequestStack::getSession` method; +:method:`Symfony\\Component\\HttpFoundation\\Request::getSession` method +from the :class:`Symfony\\Component\\HttpFoundation\\Request` class or the +:method:`Symfony\\Component\\HttpFoundation\\RequestStack::getSession` method +from the :class:`Symfony\\Component\\HttpFoundation\\RequestStack` class; the :method:`Symfony\\Component\\HttpFoundation\\Request::hasPreviousSession` method tells you if the request contains a session which was started in one of