$kernel->
boot();
$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 ($redirect instanceof RedirectResponse
) { $event =
new BeforeSendRedirectResponseEvent($transformed,
$redirect);
$container->
get('event_dispatcher'
)->
dispatch($event);
return new HttpKernelResult($transformed,
$event->
getResponse());
} // check for http caching
$enabled =
$container->
hasParameter('shopware.http.cache.enabled'
) &&
$container->
getParameter('shopware.http.cache.enabled'
);