File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Original file line number Diff line number Diff line change @@ -21,10 +21,14 @@ The basic functionality covering common use cases is provided
21
21
and developer is expected to implement the abstract methods.
22
22
23
23
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::getSupportedClasses`
24
- method is used to provide an array of supported classes, i.e. ['\Acme\DemoBundle\Model\Product']
24
+ method tells Symfony that your voter should be called whenever an object of one of the given classes
25
+ is passed to `isGranted` For example, if you return ['\Acme\DemoBundle\Model\Product'],
26
+ Symfony will call your voter when a `Product` object is passed to `isGranted`.
25
27
26
28
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::getSupportedAttributes`
27
- method is used to provide an array of supported attributes, i.e. ['CREATE', 'READ']
29
+ method tells Symfony that your voter should be called whenever one of these strings is passes as the
30
+ first argument to `isGranted`. For example, if you return `array('CREATE', 'READ')`, then
31
+ Symfony will call your voter when one of these is passed to `isGranted`.
28
32
29
33
The :method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::isGranted`
30
34
method must implement the business logic that verifies whether or not a given
You can’t perform that action at this time.
0 commit comments