File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,18 @@ which makes creating a voter even easier::
62
62
63
63
.. _how-to-use-the-voter-in-a-controller :
64
64
65
+ .. tip ::
66
+
67
+ 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.
72
+
73
+ .. versionadded :: 5.4
74
+
75
+ The ``CacheableVoterInterface `` interface was introduced in Symfony 5.4.
76
+
65
77
Setup: Checking for Access in a Controller
66
78
------------------------------------------
67
79
You can’t perform that action at this time.
0 commit comments