File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ and tag it with ``security.voter``:
169
169
xsi : schemaLocation =" http://symfony.com/schema/dic/services
170
170
http://symfony.com/schema/dic/services/services-1.0.xsd" >
171
171
<services >
172
- <service id =" security.access.post_document_voter "
172
+ <service id =" security.access.post_voter "
173
173
class =" AppBundle\Security\Authorization\Voter\PostVoter"
174
174
public =" false" >
175
175
<tag name =" security.voter" />
@@ -182,9 +182,10 @@ and tag it with ``security.voter``:
182
182
// src/AppBundle/Resources/config/services.php
183
183
$container
184
184
->register(
185
- 'security.access.post_document_voter ',
185
+ 'security.access.post_voter ',
186
186
'AppBundle\Security\Authorization\Voter\PostVoter'
187
187
)
188
+ ->setPublic(false)
188
189
->addTag('security.voter')
189
190
;
190
191
You can’t perform that action at this time.
0 commit comments