forward multiple attributes voting flag

This commit is contained in:
Christian Flothmann 2020-03-31 08:34:20 +02:00 committed by Nicolas Grekas
parent a164e22f77
commit 1b7ec67b73
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@ class TraceableAccessDecisionManager implements AccessDecisionManagerInterface
/**
* {@inheritdoc}
*
* @param bool $allowMultipleAttributes Whether to allow passing multiple values to the $attributes array
*/
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,
@ -58,7 +60,7 @@ class TraceableAccessDecisionManager implements AccessDecisionManagerInterface
$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;