urlLocators = $urlLocators; } /** * @inheritdoc */ public function locateUrl($urlKey): ?string { foreach ($this->urlLocators as $urlLocator) { $url = $urlLocator->locateUrl($urlKey); if ($url !== null) { return $url; } } return null; } }