class VoteListener implements EventSubscriberInterface
{ private TraceableAccessDecisionManager
$traceableAccessDecisionManager;
public function __construct(TraceableAccessDecisionManager
$traceableAccessDecisionManager) { $this->traceableAccessDecisionManager =
$traceableAccessDecisionManager;
} public function onVoterVote(VoteEvent
$event): void
{ $this->traceableAccessDecisionManager->
addVoterVote($event->
getVoter(),
$event->
getAttributes(),
$event->
getVote());
} public static function getSubscribedEvents(): array
{ return ['debug.security.authorization.vote' => 'onVoterVote'
];
}}