@@ -115,22 +115,22 @@ the security layer.
115
115
116
116
To recap, here's what's expected from the three abstract methods:
117
117
118
- The :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::getSupportedClasses `
119
- method tells Symfony that your voter should be called whenever an object of one
120
- of the given classes is passed to ``isGranted() ``. For example, if you return
121
- ``array('AppBundle\Model\Product') ``, Symfony will call your voter when a
122
- ``Product `` object is passed to ``isGranted() ``.
123
-
124
- The :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::getSupportedAttributes `
125
- method tells Symfony that your voter should be called whenever one of these
126
- strings is passed as the first argument to ``isGranted() ``. For example, if you
127
- return ``array('CREATE', 'READ') ``, then Symfony will call your voter when one
128
- of these is passed to ``isGranted() ``.
129
-
130
- The :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::isGranted `
131
- method must implement the business logic that verifies whether or not a given
132
- user is allowed access to a given attribute (e.g. ``CREATE `` or ``READ ``) on a
133
- given object. This method must return a boolean.
118
+ :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::getSupportedClasses `
119
+ It tells Symfony that your voter should be called whenever an object of one
120
+ of the given classes is passed to ``isGranted() `` For example, if you return
121
+ ``array('AppBundle\Model\Product') ``, Symfony will call your voter when a
122
+ ``Product `` object is passed to ``isGranted() ``.
123
+
124
+ :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::getSupportedAttributes `
125
+ It tells Symfony that your voter should be called whenever one of these
126
+ strings is passes as the first argument to ``isGranted() ``. For example, if
127
+ you return ``array('CREATE', 'READ') ``, then Symfony will call your voter
128
+ when one of these is passed to ``isGranted() ``.
129
+
130
+ :method: `Symfony\\ Component\\ Security\\ Core\\ Authorization\\ Voter\\ AbstractVoter::isGranted `
131
+ It implements the business logic that verifies whether or not a given user is
132
+ allowed access to a given attribute (e.g. ``CREATE `` or ``READ ``) on a given
133
+ object. This method must return a boolean.
134
134
135
135
.. note ::
136
136
0 commit comments