// check for http caching
$enabled =
$container->
hasParameter('shopware.http.cache.enabled'
) &&
$container->
getParameter('shopware.http.cache.enabled'
);
if ($enabled &&
$container->
has(CacheStore::
class)) { $kernel =
new static::
$httpCacheClass($kernel,
$container->
get(CacheStore::
class), null,
['debug' =>
$this->debug
]);
} $response =
$kernel->
handle($transformed,
$type,
$catch);
// fire event to trigger runtime events like seo url headers
$event =
new BeforeSendResponseEvent($transformed,
$response);
$container->
get('event_dispatcher'
)->
dispatch($event);
return new HttpKernelResult($transformed,
$event->
getResponse());
} private function createKernel(): KernelInterface
{ if ($this->kernel !== null
) { return $this->kernel;
}