Skip to content

Commit e205ac0

Browse files
committed
Minor tweak
1 parent e03c13c commit e205ac0

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

security/expressions.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,7 @@ Inside the subject's expression, you have access to these variables:
201201
``args``
202202
An array of controller arguments that are passed to the controller.
203203
``this``
204-
The controller instance itself, allowing access to its properties and methods.
205-
206-
.. versionadded:: 8.1
207-
208-
The ``this`` variable was introduced in Symfony 8.1.
209-
210-
This is useful when you need to access controller properties in the subject
211-
expression::
204+
The controller instance, allowing access to its properties and methods::
212205

213206
use Symfony\Component\ExpressionLanguage\Expression;
214207
use Symfony\Component\HttpFoundation\Response;
@@ -225,6 +218,10 @@ Inside the subject's expression, you have access to these variables:
225218
}
226219
}
227220

221+
.. versionadded:: 8.1
222+
223+
The ``this`` variable was introduced in Symfony 8.1.
224+
228225
Additionally to expressions, the ``#[IsGranted]`` attribute also accepts
229226
closures that return a boolean value. The subject can also be a closure that
230227
returns an array of values that will be injected into the closure::

0 commit comments

Comments
 (0)