/**
* @return void
*/
public function onKernelControllerArguments(ControllerArgumentsEvent
$event) { /** @var IsGranted[] $attributes */
if (!\
is_array($attributes =
$event->
getAttributes()[IsGranted::
class] ?? null
)) { return;
} $request =
$event->
getRequest();
$arguments =
$event->
getNamedArguments();
foreach ($attributes as $attribute) { $subject = null;
if ($subjectRef =
$attribute->subject
) { if (\
is_array($subjectRef)) { foreach ($subjectRef as $refKey =>
$ref) { $subject[\
is_string($refKey) ?
$refKey :
(string) $ref] =
$this->
getIsGrantedSubject($ref,
$request,
$arguments);
} } else { $subject =
$this->
getIsGrantedSubject($subjectRef,
$request,
$arguments);
}