File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -277,9 +277,15 @@ impersonation_exit_path
277
277
``exitTo `` *(optional) *
278
278
**type **: ``string ``
279
279
280
- Generates a relative URL to exit impersonation. If `exitTo ` is specified it will use its value to build the URl,
281
- elsewhere it will use the current URI.
282
- If we are not impersonating a user, it will return an empty string.
280
+ .. versionadded :: 5.2
281
+
282
+ The ``impersonation_exit_path()` function was introduced in Symfony 5.2.
283
+
284
+ Generates a URL that you can visit to exit :doc:`user impersonation </security/impersonating_user>`.
285
+ After exiting impersonation, the user is redirected to the current URI. If you
286
+ prefer to redirect to a different URI, define its value in the ``exitTo `` argument.
287
+
288
+ If no user is being impersonated, the function returns an empty string.
283
289
284
290
impersonation_exit_url
285
291
~~~~~~~~~~~~~~~~~~~~~~
@@ -291,8 +297,12 @@ impersonation_exit_url
291
297
``exitTo `` *(optional) *
292
298
**type **: ``string ``
293
299
294
- Equal to the `impersonation_exit_path `_ function, but it'll generate an absolute URL
295
- instead of a relative one.
300
+ .. versionadded :: 5.2
301
+
302
+ The ``impersonation_exit_url()` function was introduced in Symfony 5.2.
303
+
304
+ It's similar to the `impersonation_exit_path`_ function, but it generates
305
+ absolute URLs instead of relative URLs.
296
306
297
307
Form Related Functions
298
308
~~~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments