$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();
$baseUrl = str_replace($absoluteBaseUrl, '', $salesChannel['url']);
$container = $kernel->getContainer();
// transform request to resolve seo urls and detect sales channel
$transformed = $container
->get(RequestTransformerInterface::class)
->transform($request);
$redirect = $container
->get(CanonicalRedirectService::class)
->getRedirect($transformed);
if (!\is_bool($catch)) {
Feature::triggerDeprecationOrThrow('v6.5.0.0', 'The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
}
try {
return $this->doHandle($request, (int) $type, (bool) $catch);
} catch (DBALException $e) {
$connectionParams = self::getConnection()->getParams();
$message = str_replace([$connectionParams['url'] ?? null, $connectionParams['password'] ?? null, $connectionParams['user'] ?? null], '******', $e->getMessage());
}
} else {
$kernel = new InstallerKernel($appEnv, $debug);
}
$result = $kernel->handle($request);
if ($result instanceof Response) {
$result->send();
$kernel->terminate($request, $result);
} else {
SalesChannelMappingException
|
---|
Shopware\Storefront\Framework\Routing\Exception\SalesChannelMappingException: Unable to find a matching sales channel for the request: https://c-1753.maxcluster.net/de-de/10-49-522038-49001-FLORENZ-2700-XL". Please make sure the domain mapping is correct. at /var/www/share/c-1753.maxcluster.net/shopware/vendor/shopware/storefront/Framework/Routing/RequestTransformer.php:144 at Shopware\Storefront\Framework\Routing\RequestTransformer->transform(object(Request)) (/var/www/share/c-1753.maxcluster.net/shopware/vendor/shopware/core/HttpKernel.php:129) at Shopware\Core\HttpKernel->doHandle(object(Request), 1, true) (/var/www/share/c-1753.maxcluster.net/shopware/vendor/shopware/core/HttpKernel.php:75) at Shopware\Core\HttpKernel->handle(object(Request)) (/var/www/share/c-1753.maxcluster.net/shopware/public/index.php:85) |