Skip to content

Commit bf1e1c7

Browse files
committed
Minor tweaks
1 parent 42dfb9d commit bf1e1c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security/voters.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ which makes creating a voter even easier::
6565
.. tip::
6666

6767
Checking each voter several times can be time consumming for applications
68-
that perform a lot of permission checks. However, when a voter implements
69-
the :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\CacheableVoterInterface`,
70-
the access decision manager, will remember the attribute and type of subject
71-
supported by the voter, and will, next, only call the involved voters.
68+
that perform a lot of permission checks. To improve performance in those cases,
69+
you can make your voters implement the :class:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\CacheableVoterInterface`.
70+
This allows the access decision manager to remember the attribute and type
71+
of subject supported by the voter, to only call the needed voters each time.
7272

7373
.. versionadded:: 5.4
7474

0 commit comments

Comments
 (0)