'inherited_roles' =>
array_unique($inheritedRoles),
'supports_role_hierarchy' => null !==
$this->roleHierarchy,
];
} // collect voters and access decision manager information
if ($this->accessDecisionManager instanceof TraceableAccessDecisionManager
) { $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;