public function findUrlsByResourceLocator($resourceLocator, $environment, $languageCode, $webspaceKey = null, $domain = null, $scheme = 'http')
{
$urls = [];
$portals = $this->getWebspaceCollection()->getPortalInformations($environment, [RequestAnalyzerInterface::MATCH_TYPE_FULL]);
foreach ($portals as $portalInformation) {
$sameLocalization = $portalInformation->getLocalization()->getLocalization() === $languageCode;
$sameWebspace = $webspaceKey === null || $portalInformation->getWebspace()->getKey() === $webspaceKey;
$url = rtrim(sprintf('%s://%s%s', $scheme, $portalInformation->getUrl(), $resourceLocator), '/');
if ($sameLocalization && $sameWebspace && $this->isFromDomain($url, $domain)) {
$urls[] = $url;
}
}
return $urls;
}