Skip to content

Commit ba8b4c4

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Change security title for checking if user is logged in [Attributes] Add `#[MapDateTime]` reference
2 parents adb1ff9 + 8238237 commit ba8b4c4

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

controller/value_resolver.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Symfony ships with the following value resolvers in the
103103

104104
.. versionadded:: 6.1
105105

106-
The ``DateTimeValueResolver`` was introduced in Symfony 6.1.
106+
The ``DateTimeValueResolver`` and the ``MapDateTime`` attribute were
107+
introduced in Symfony 6.1.
107108

108109
.. versionadded:: 6.3
109110

reference/attributes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ HttpKernel
5757
* :doc:`AsController </controller/service>`
5858
* :class:`Symfony\\Component\\HttpKernel\\Attribute\\AsPinnedValueResolver`
5959
* :ref:`Cache <http-cache-expiration-intro>`
60-
* :class:`Symfony\\Component\\HttpKernel\\Attribute\\MapDateTime`
60+
* :ref:`MapDateTime <functionality-shipped-with-the-httpkernel>`
6161
* :class:`Symfony\\Component\\HttpKernel\\Attribute\\ValueResolver`
6262
* :ref:`WithHttpStatus <framework_exceptions>`
6363
* :ref:`WithLogLevel <framework_exceptions>`

security.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,15 +2491,17 @@ these voters is similar to the role-based access checks implemented in the
24912491
previous chapters. Read :doc:`/security/voters` to learn how to implement
24922492
your own voter.
24932493

2494-
Checking to see if a User is Logged In (IS_AUTHENTICATED_FULLY)
2495-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2494+
.. _checking-to-see-if-a-user-is-logged-in-is-authenticated-fully:
2495+
2496+
Checking to see if a User is Logged In
2497+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24962498

24972499
If you *only* want to check if a user is logged in (you don't care about roles),
24982500
you have the following two options.
24992501

25002502
Firstly, if you've given *every* user ``ROLE_USER``, you can check for that role.
25012503

2502-
Secondly, you can use a special "attribute" in place of a role::
2504+
Secondly, you can use the special "attribute" ``IS_AUTHENTICATED_FULLY`` in place of a role::
25032505

25042506
// ...
25052507

0 commit comments

Comments
 (0)