Skip to content

Commit 73bd908

Browse files
javiereguiluzweaverryan
authored andcommitted
Fixed some typos
1 parent 60643f0 commit 73bd908

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cookbook/security/voters.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ the security layer. This can be done easily through the service container.
9292
methods in your implementation of the ``vote()`` method and return ``ACCESS_ABSTAIN``
9393
if your voter does not support the class or attribute.
9494

95-
9695
.. tip::
9796

9897
An
@@ -204,8 +203,8 @@ application configuration file with the following code.
204203
That's it! Now, when deciding whether or not a user should have access,
205204
the new voter will deny access to any user in the list of blacklisted IPs.
206205

207-
Note that the voters are only called, if any access is actually checked. So
208-
you need at least something like
206+
Note that the voters are only called, if any access is actually checked. So
207+
you need at least something like
209208

210209
.. configuration-block::
211210

cookbook/security/voters_data_permission.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ To recap, here's what's expected from the three abstract methods:
117117

118118
:method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::getSupportedClasses`
119119
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
120+
of the given classes is passed to ``isGranted()``. For example, if you return
121121
``array('AppBundle\Model\Product')``, Symfony will call your voter when a
122122
``Product`` object is passed to ``isGranted()``.
123123

124124
:method:`Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AbstractVoter::getSupportedAttributes`
125125
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
126+
strings is passed as the first argument to ``isGranted()``. For example, if
127127
you return ``array('CREATE', 'READ')``, then Symfony will call your voter
128128
when one of these is passed to ``isGranted()``.
129129

0 commit comments

Comments
 (0)