Skip to content

Commit 6b46309

Browse files
committed
Fix references
1 parent cde85b4 commit 6b46309

File tree

8 files changed

+22
-29
lines changed

8 files changed

+22
-29
lines changed

_build/redirection_map

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@
248248
/cookbook/session/index /session
249249
/cookbook/session/limit_metadata_writes /reference/configuration/framework
250250
/session/limit_metadata_writes /reference/configuration/framework
251-
/cookbook/session/locale_sticky_session /session/locale_sticky_session
251+
/cookbook/session/locale_sticky_session /session
252+
/cookbook/locale_sticky_session /session
252253
/cookbook/session/php_bridge /session/php_bridge
253254
/cookbook/session/proxy_examples /session/proxy_examples
254255
/cookbook/session/sessions_directory /session/sessions_directory
@@ -477,8 +478,9 @@
477478
/components/translation/custom_message_formatter https://github.com/symfony/translation
478479
/components/notifier https://github.com/symfony/notifier
479480
/components/routing https://github.com/symfony/routing
480-
/doctrine/pdo_session_storage /session/database
481-
/doctrine/mongodb_session_storage /session/database
481+
/session/database /session
482+
/doctrine/pdo_session_storage /session
483+
/doctrine/mongodb_session_storage /session
482484
/components/dotenv https://github.com/symfony/dotenv
483485
/components/mercure /mercure
484486
/components/polyfill_apcu https://github.com/symfony/polyfill-apcu

components/http_foundation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ the response content will look like this:
752752
Session
753753
-------
754754

755-
The session information is in its own document: :doc:`/components/http_foundation/sessions`.
755+
The session information is in its own document: :doc:`/session`.
756756

757757
Safe Content Preference
758758
-----------------------
@@ -829,10 +829,9 @@ Learn More
829829
:maxdepth: 1
830830
:glob:
831831

832-
/components/http_foundation/*
833832
/controller
834833
/controller/*
835-
/session/*
834+
/session
836835
/http_cache/*
837836

838837
.. _nginx: https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/

doctrine.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,6 @@ Learn more
882882
doctrine/multiple_entity_managers
883883
doctrine/resolve_target_entity
884884
doctrine/reverse_engineering
885-
session/database
886885
testing/database
887886

888887
.. _`Doctrine`: https://www.doctrine-project.org/

reference/configuration/framework.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ handler_id
15821582
The service id used for session storage. The default value ``'session.handler.native_file'``
15831583
will let Symfony manage the sessions itself using files to store the session metadata.
15841584
Set it to ``null`` to use the native PHP session mechanism.
1585-
You can also :doc:`store sessions in a database </session/database>`.
1585+
You can also :ref:`store sessions in a database <session-database>`.
15861586

15871587
.. _name:
15881588

security/impersonating_user.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ The firewall dispatches the ``security.switch_user`` event right after the imper
370370
is completed. The :class:`Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent` is
371371
passed to the listener, and you can use this to get the user that you are now impersonating.
372372

373-
The :doc:`/session/locale_sticky_session` article does not update the locale
374-
when you impersonate a user. If you *do* want to be sure to update the locale when
375-
you switch users, add an event subscriber on this event::
373+
The :ref:`locale-sticky-session` section does not update the locale when you
374+
impersonate a user. If you *do* want to be sure to update the locale when you
375+
switch users, add an event subscriber on this event::
376376

377377
// src/EventListener/SwitchUserSubscriber.php
378378
namespace App\EventListener;

session.rst

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ by the :ref:`Twig global app variable <twig-app-variable>`:
235235
{% endfor %}
236236
{% endfor %}
237237

238-
.. code-block:: standalone-php
238+
.. code-block:: php-standalone
239239
240240
// display warnings
241241
foreach ($session->getFlashBag()->get('warning', []) as $message) {
@@ -445,6 +445,8 @@ timestamp and the lifetime.
445445
.. index::
446446
single: Session; Database Storage
447447

448+
.. _session-database:
449+
448450
Store Sessions in a Database
449451
----------------------------
450452

@@ -1132,15 +1134,18 @@ This is the recommended migration workflow:
11321134
#. After verifying that the sessions in your application are working, switch
11331135
from the migrating handler to the new handler.
11341136

1137+
.. index::
1138+
single: Sessions, saving locale
1139+
1140+
.. _locale-sticky-session:
1141+
11351142
Making the Locale "Sticky" during a User's Session
11361143
--------------------------------------------------
11371144

11381145
Symfony stores the locale setting in the Request, which means that this setting
11391146
is not automatically saved ("sticky") across requests. But, you *can* store the
11401147
locale in the session, so that it's used on subsequent requests.
11411148

1142-
.. _creating-a-LocaleSubscriber:
1143-
11441149
Creating a LocaleSubscriber
11451150
~~~~~~~~~~~~~~~~~~~~~~~~~~~
11461151

@@ -1588,18 +1593,6 @@ the example below:
15881593
can use the Symfony save handler without side effects and that the session
15891594
has not been started before Symfony is initialized.
15901595

1591-
More about Sessions
1592-
-------------------
1593-
1594-
.. toctree::
1595-
:maxdepth: 1
1596-
1597-
session/database
1598-
session/locale_sticky_session
1599-
session/php_bridge
1600-
session/proxy_examples
1601-
1602-
.. _`HttpFoundation component`: https://symfony.com/components/HttpFoundation
16031596
.. _`phpredis extension`: https://github.com/phpredis/phpredis
16041597
.. _`DoctrineMongoDBBundle configuration`: https://symfony.com/doc/master/bundles/DoctrineMongoDBBundle/config.html
16051598
.. _`MongoDB shell`: https://docs.mongodb.com/manual/mongo/

translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The translation process has several steps:
3939

4040
#. Determine, :doc:`set and manage the user's locale </translation/locale>`
4141
for the request and optionally
42-
:doc:`on the user's entire session </session/locale_sticky_session>`.
42+
:ref:`on the user's entire session <locale-sticky-session>`.
4343

4444
Installation
4545
------------

translation/locale.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ it::
3333
listener priority to a higher value than ``LocaleListener`` priority (which
3434
you can obtain by running the ``debug:event kernel.request`` command).
3535

36-
Read :doc:`/session/locale_sticky_session` for more information on making
37-
the user's locale "sticky" to their session.
36+
Read :ref:`locale-sticky-session` for more information on making the user's
37+
locale "sticky" to their session.
3838

3939
.. note::
4040

0 commit comments

Comments
 (0)