private readonly RequestTransformerInterface
$decorated,
private readonly AbstractSeoResolver
$resolver,
private readonly array
$registeredApiPrefixes,
private readonly AbstractDomainLoader
$domainLoader ) { } public function transform(Request
$request): Request
{ $request =
$this->decorated->
transform($request);
if (!
$this->
isSalesChannelRequired($request->
getPathInfo())) { return $this->decorated->
transform($request);
} $salesChannel =
$this->
findSalesChannel($request);
if ($salesChannel === null
) { // this class and therefore the "isSalesChannelRequired" method is currently not extendable
// which can cause problems when adding custom paths
throw new SalesChannelMappingException($request->
getUri());
} $absoluteBaseUrl =
$this->
getSchemeAndHttpHost($request) .
$request->
getBaseUrl();