Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9edff56

Browse filesBrowse files
committed
Removed the abstract_voter.rst.inc file
1 parent 074c1dc commit 9edff56
Copy full SHA for 9edff56

File tree

Expand file treeCollapse file tree

2 files changed

+16
-51
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+16
-51
lines changed

‎cookbook/security/abstract_voter.rst.inc

Copy file name to clipboardExpand all lines: cookbook/security/abstract_voter.rst.inc
-35Lines changed: 0 additions & 35 deletions
This file was deleted.

‎cookbook/security/voters_data_permission.rst

Copy file name to clipboardExpand all lines: cookbook/security/voters_data_permission.rst
+16-16Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -115,22 +115,22 @@ the security layer.
115115

116116
To recap, here's what's expected from the three abstract methods:
117117

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.
134134

135135
.. note::
136136

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.