Skip to content

Commit 767290f

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: Update json_login_setup.rst Document switch_user.stateless firewall option Fixed small typo mistake
2 parents 735b15e + 332d0ba commit 767290f

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ correctly. To validate the types of the options, call
326326

327327
// check all items in an array recursively for a type
328328
$resolver->setAllowedTypes('dates', 'DateTime[]');
329-
$resolver->setAllowedtypes('ports', 'int[]');
329+
$resolver->setAllowedTypes('ports', 'int[]');
330330
}
331331
}
332332

reference/configuration/security.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ Each part will be explained in the next section.
283283
provider: ~
284284
parameter: _switch_user
285285
role: ROLE_ALLOWED_TO_SWITCH
286+
stateless: false
286287
287288
access_control:
288289
requires_channel: ~

security/impersonating_user.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ firewall listener:
6666
),
6767
));
6868
69+
.. tip::
70+
71+
For using the ``switch_user`` listener in a ``stateless`` firewall, set the
72+
``switch_user.stateless`` option to ``true``.
73+
6974
To switch to another user, just add a query string with the ``_switch_user``
7075
parameter and the username as the value to the current URL:
7176

security/json_login_setup.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ path:
6969
// src/Controller/SecurityController.php
7070
7171
// ...
72+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
7273
use Symfony\Component\HttpFoundation\Request;
7374
use Symfony\Component\Routing\Annotation\Route;
7475

0 commit comments

Comments
 (0)