Преглед на файлове

[Security] fixed method visibility

Fabien Potencier преди 14 години
родител
ревизия
9944542811
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/Symfony/Component/Security/Authorization/AccessDecisionManager.php

+ 2 - 2
src/Symfony/Component/Security/Authorization/AccessDecisionManager.php

@@ -161,7 +161,7 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
      * If all voters abstained from voting, the decision will be based on the
      * allowIfAllAbstainDecisions property value (defaults to false).
      */
-    public function decideConsensus(TokenInterface $token, array $attributes, $object = null)
+    protected function decideConsensus(TokenInterface $token, array $attributes, $object = null)
     {
         $grant = 0;
         $deny = 0;
@@ -208,7 +208,7 @@ class AccessDecisionManager implements AccessDecisionManagerInterface
      * If all voters abstained from voting, the decision will be based on the
      * allowIfAllAbstainDecisions property value (defaults to false).
      */
-    public function decideUnanimous(TokenInterface $token, array $attributes, $object = null)
+    protected function decideUnanimous(TokenInterface $token, array $attributes, $object = null)
     {
         $grant = 0;
         foreach ($attributes as $attribute) {