/**
* {@inheritdoc}
*/
public function generateList(array
$list, ?Context
$context = null
) { $context =
$context ??
$this->context;
$contextList =
[];
foreach ($list as $key => &
$userParams) { $contextList[$key] =
clone $context;
foreach ($this->preFilters
as $preFilter) { $userParams =
$preFilter->
preFilter($userParams,
$contextList[$key]);
} } unset($userParams);
/** @var array<int, array<string, mixed>> $preFilteredList */
$preFilteredList =
$list;
$urls =
[];
foreach ($this->generators
as $route) { if ($route instanceof GeneratorListInterface
) { $urls =
$route->
generateList($preFilteredList,
$context);
} elseif ($route instanceof GeneratorInterface
) {