File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,41 @@ expression
286
286
Creates an :class: `Symfony\\ Component\\ ExpressionLanguage\\ Expression ` related
287
287
to the :doc: `ExpressionLanguage component </components/expression_language >`.
288
288
289
+ impersonation_path
290
+ ~~~~~~~~~~~~~~~~~~
291
+
292
+ .. code-block :: twig
293
+
294
+ {{ impersonation_path(identifier) }}
295
+
296
+ ``identifier ``
297
+ **type **: ``string ``
298
+
299
+ Generates a URL that you can visit to
300
+ :doc: `impersonate a user </security/impersonating_user >`, identified by the
301
+ ``identifier `` argument.
302
+
303
+ .. versionadded :: 6.4
304
+
305
+ The ``impersonation_path() `` function was introduced in Symfony 6.4.
306
+
307
+ impersonation_url
308
+ ~~~~~~~~~~~~~~~~~~
309
+
310
+ .. code-block :: twig
311
+
312
+ {{ impersonation_url(identifier) }}
313
+
314
+ ``identifier ``
315
+ **type **: ``string ``
316
+
317
+ It's similar to the `impersonation_path `_ function, but it generates
318
+ absolute URLs instead of relative URLs.
319
+
320
+ .. versionadded :: 6.4
321
+
322
+ The ``impersonation_url() `` function was introduced in Symfony 6.4.
323
+
289
324
impersonation_exit_path
290
325
~~~~~~~~~~~~~~~~~~~~~~~
291
326
You can’t perform that action at this time.
0 commit comments