From 390c05f31d2aefddc330d22f13228c96ab925a91 Mon Sep 17 00:00:00 2001 From: "german.bortoli" Date: Mon, 6 Jul 2015 14:10:18 +0100 Subject: [PATCH] Fixed PHP doc for how to declare the voter as a service, now they are identical to XML and YAML. --- cookbook/security/voters_data_permission.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbook/security/voters_data_permission.rst b/cookbook/security/voters_data_permission.rst index 2376d393b53..e2c0962672e 100644 --- a/cookbook/security/voters_data_permission.rst +++ b/cookbook/security/voters_data_permission.rst @@ -169,7 +169,7 @@ and tag it with ``security.voter``: xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"> - @@ -182,9 +182,10 @@ and tag it with ``security.voter``: // src/AppBundle/Resources/config/services.php $container ->register( - 'security.access.post_document_voter', + 'security.access.post_voter', 'AppBundle\Security\Authorization\Voter\PostVoter' ) + ->setPublic(false) ->addTag('security.voter') ;