$namedArguments =
[];
$arguments =
$this->arguments;
foreach ($this->controllerEvent->
getControllerReflector()->
getParameters() as $i =>
$param) { if ($param->
isVariadic()) { $namedArguments[$param->name
] = \
array_slice($arguments,
$i);
break;
} if (\
array_key_exists($i,
$arguments)) { $namedArguments[$param->name
] =
$arguments[$i];
} elseif ($param->
isDefaultvalueAvailable()) { $namedArguments[$param->name
] =
$param->
getDefaultValue();
} } return $this->namedArguments =
$namedArguments;
} /**
* @template T of class-string|null
*
* @param T $className
*
* @return array<class-string, list<object>>|list<object>
*
* @psalm-return (T is null ? array<class-string, list<object>> : list<object>)
*/