You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ CHANGELOG
4
4
4.4.0
5
5
-----
6
6
7
+
* added the `impersonation_exit_url()` and `impersonation_exit_path()` functions that return url, that allow to switch back to the original user, when using user impersonation.
7
8
* deprecated to pass `$rootDir` and `$fileLinkFormatter` as 5th and 6th argument respectively to the
8
9
`DebugCommand::__construct()` method, swap the variables position.
Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Authentication/Token/SwitchUserToken.php
+17-8
Original file line number
Diff line number
Diff line change
@@ -20,41 +20,50 @@ class SwitchUserToken extends UsernamePasswordToken
20
20
{
21
21
private$originalToken;
22
22
23
+
private$impersonatedFromUri;
24
+
23
25
/**
24
-
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
25
-
* @param mixed $credentials This usually is the password of the user
26
-
* @param string $providerKey The provider key
27
-
* @param string[] $roles An array of roles
28
-
* @param TokenInterface $originalToken The token of the user who switched to the current user
26
+
* @param string|object $user The username (like a nickname, email address, etc.), or a UserInterface instance or an object implementing a __toString method
27
+
* @param mixed $credentials This usually is the password of the user
28
+
* @param string $providerKey The provider key
29
+
* @param string[] $roles An array of roles
30
+
* @param TokenInterface $originalToken The token of the user who switched to the current user
31
+
* @param string|null $impersonatedFromUri The Url where was the user at the switch
0 commit comments