From d6e1ec0f28b61614ffa01f14517a8762511206f7 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Mon, 5 Aug 2019 17:43:32 +0200 Subject: [PATCH] Clarify VoterInterface with multiple attributes --- .../Security/Core/Authorization/Voter/VoterInterface.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php index 4bb73672c069d..7ff9fb0847f45 100644 --- a/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php +++ b/src/Symfony/Component/Security/Core/Authorization/Voter/VoterInterface.php @@ -30,6 +30,9 @@ interface VoterInterface * This method must return one of the following constants: * ACCESS_GRANTED, ACCESS_DENIED, or ACCESS_ABSTAIN. * + * If more than one attribute is passed, the voter must grant access if access is granted to any of + * the given attributes. + * * @param TokenInterface $token A TokenInterface instance * @param mixed $subject The subject to secure * @param array $attributes An array of attributes associated with the method being invoked