/**
* Builds an array using input parameters, which is used to know what to warm up
*
* @return array
*/
private function prepareOptions(array
$input, UrlProviderFactoryInterface
$factory) { $options =
[];
$extensions =
[];
foreach ($factory->
getAllProviders() as $provider) { $providerName =
$provider->
getName();
if (\
in_array($providerName,
$this->defaultProviderNames, true
)) { $options[$providerName] =
$input[$providerName];
} else { $extensions[$providerName] = true;
} } if ($input['extensions'
] === true
) { $options =
array_merge($options,
$extensions);
}