Skip to content

Commit 979eee7

Browse files
committed
Minor reword
1 parent 9ef80d0 commit 979eee7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

security/impersonating_user.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,10 @@ not this is allowed. If your voter isn't called, see :ref:`declaring-the-voter-a
363363
Events
364364
------
365365

366-
Just before the impersonation is fully completed, the ``security.switch_user`` event is
367-
dispatched.
368-
The :class:`Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent` is
369-
passed to the :doc:`listener or subscriber </event_dispatcher>`, and you can use
370-
this to get the user that you are now impersonating.
366+
the ``security.switch_user`` event is dispatched just before the impersonation
367+
is fully completed. Your :doc:`listener or subscriber </event_dispatcher>` will
368+
receive a :class:`Symfony\\Component\\Security\\Http\\Event\\SwitchUserEvent`,
369+
which you can use to get the user that you are now impersonating.
371370

372371
This event is also dispatched just before impersonation is fully exited. You can
373372
use it to get the original impersonator user.

0 commit comments

Comments
 (0)