From c7be7a30b6f25fe6d947815cf382bf0599e0bbc5 Mon Sep 17 00:00:00 2001 From: Tomas Date: Sat, 4 Jul 2015 21:17:48 +0300 Subject: [PATCH 1/2] Fix invalid phpunit URLs --- create_framework/unit-testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_framework/unit-testing.rst b/create_framework/unit-testing.rst index 7bccdceb4bd..b34b3a76e2d 100644 --- a/create_framework/unit-testing.rst +++ b/create_framework/unit-testing.rst @@ -185,6 +185,6 @@ Symfony code. Now that we are confident (again) about the code we have written, we can safely think about the next batch of features we want to add to our framework. -.. _`PHPUnit`: http://www.phpunit.de/manual/current/en/index.html -.. _`test doubles`: http://www.phpunit.de/manual/current/en/test-doubles.html +.. _`PHPUnit`: http://phpunit.de/manual/current/en/index.html +.. _`test doubles`: http://phpunit.de/manual/current/en/test-doubles.html .. _`XDebug`: http://xdebug.org/ From 390c05f31d2aefddc330d22f13228c96ab925a91 Mon Sep 17 00:00:00 2001 From: "german.bortoli" Date: Mon, 6 Jul 2015 14:10:18 +0100 Subject: [PATCH 2/2] 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') ;