Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 60cd0f7

Browse filesBrowse files
committed
minor #14933 [ExpressionLanguage][Security] Mention the "subject" expression language variable (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [ExpressionLanguage][Security] Mention the "subject" expression language variable This was requested in symfony/symfony#40089 By the way, in my opinion providing two different ways of doing exactly the same is always confusing. Commits ------- 4511683 Mention the "subject" expression language variable
2 parents ef4dd8e + 4511683 commit 60cd0f7
Copy full SHA for 60cd0f7

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎security/expressions.rst

Copy file name to clipboardExpand all lines: security/expressions.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Inside the expression, you have access to a number of variables:
4848
does not include the ``IS_AUTHENTICATED_*`` attributes (see the functions below).
4949
``object``
5050
The object (if any) that's passed as the second argument to ``isGranted()``.
51+
``subject``
52+
It stores the same value as ``object``, so they are equivalent.
5153
``token``
5254
The token object.
5355
``trust_resolver``

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.