if (false !==
$exceptionOnNoToken) { throw new \
LogicException(sprintf('Argument $exceptionOnNoToken of "%s()" must be set to "false".', __METHOD__
));
} $this->tokenStorage =
$tokenStorage;
$this->accessDecisionManager =
$accessDecisionManager;
$this->map =
$map;
} public function supports(Request
$request): ?bool
{ [$attributes] =
$this->map->
getPatterns($request);
$request->attributes->
set('_access_control_attributes',
$attributes);
if ($attributes &&
[AuthenticatedVoter::PUBLIC_ACCESS
] !==
$attributes) { return true;
} return null;
} /**
* Handles access authorization.
*
* @throws AccessDeniedException
*/