$this->data
['voter_strategy'
] =
$this->accessDecisionManager->
getStrategy();
foreach ($this->accessDecisionManager->
getVoters() as $voter) { if ($voter instanceof TraceableVoter
) { $voter =
$voter->
getDecoratedVoter();
} $this->data
['voters'
][] =
$this->hasVarDumper ?
new ClassStub($voter::
class) :
$voter::
class;
} // collect voter details
$decisionLog =
$this->accessDecisionManager->
getDecisionLog();
foreach ($decisionLog as $key =>
$log) { $decisionLog[$key]['voter_details'
] =
[];
foreach ($log['voterDetails'
] as $voterDetail) { $voterClass =
$voterDetail['voter'
]::
class;
$classData =
$this->hasVarDumper ?
new ClassStub($voterClass) :
$voterClass;
$decisionLog[$key]['voter_details'
][] =
[ 'class' =>
$classData,
'attributes' =>
$voterDetail['attributes'
], // Only displayed for unanimous strategy
'vote' =>
$voterDetail['vote'
],
];
}