$event =
new StorefrontRenderEvent($view,
$parameters,
$request,
$salesChannelContext);
$this->container->
get('event_dispatcher'
)->
dispatch($event);
$iconCacheEnabled =
$this->
getSystemConfigService()->
get('core.storefrontSettings.iconCache'
) ?? true;
if ($iconCacheEnabled) { IconCacheTwigFilter::
enable();
} $response = Profiler::
trace('twig-rendering',
fn () =>
$this->
render($view,
$event->
getParameters(),
new StorefrontResponse()));
if ($iconCacheEnabled) { IconCacheTwigFilter::
disable();
} if (!
$response instanceof StorefrontResponse
) { throw StorefrontException::
unSupportStorefrontResponse();
} $host =
$request->attributes->
get(RequestTransformer::STOREFRONT_URL
);