Skip to content

Commit f6a5add

Browse files
committed
Minor reword
1 parent 2f0330c commit f6a5add

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/security/authorization.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ ExpressionVoter
161161
~~~~~~~~~~~~~~~
162162

163163
The :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\ExpressionVoter`
164-
supports :class:`Symfony\\Component\\ExpressionLanguage\\Expression` attributes
165-
and grants access based on the evaluation of expression (see :doc:`/security/expressions` )
166-
167-
.. code-block:: php
164+
grants access based on the evaluation of expressions created with the
165+
:doc:`ExpressionLanguage component </components/expression_language>`. These
166+
expressions have access to a number of
167+
:ref:`special security variables <security-expression-variables>`::
168168

169169
use Symfony\Component\ExpressionLanguage\Expression;
170170
use Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter;
@@ -190,7 +190,7 @@ and grants access based on the evaluation of expression (see :doc:`/security/exp
190190
'"ROLE_ADMIN" in roles or (not is_anonymous() and user.isSuperAdmin())'
191191
)
192192

193-
$vote = $expressionVoter->vote($token, $object, array($expression));
193+
$vote = $expressionVoter->vote($token, $object, [$expression]);
194194

195195
.. note::
196196

0 commit comments

Comments
 (0)