Skip to content

Commit

Permalink
forward multiple attributes voting flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Mar 31, 2020
1 parent a164e22 commit ae8726a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -48,7 +48,7 @@ public function __construct(AccessDecisionManagerInterface $manager)
/**
* {@inheritdoc}
*/
public function decide(TokenInterface $token, array $attributes, $object = null): bool
public function decide(TokenInterface $token, array $attributes, $object = null/*, bool $allowMultipleAttributes = false*/): bool
{
$currentDecisionLog = [
'attributes' => $attributes,
Expand All @@ -58,7 +58,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)

$this->currentLog[] = &$currentDecisionLog;

$result = $this->manager->decide($token, $attributes, $object);
$result = $this->manager->decide($token, $attributes, $object, 3 < \func_num_args() && func_get_arg(3));

$currentDecisionLog['result'] = $result;

Expand Down

0 comments on commit ae8726a

Please sign in to comment.