if (!
$context instanceof SalesChannelContext
) { return;
} if (!
$this->maintenanceResolver->
shouldBeCached($request)) { return;
} $route =
$request->attributes->
get('_route'
);
if ($route === 'frontend.checkout.configure'
) { $this->
setCurrencyCookie($request,
$response);
} $cart =
$this->cartService->
getCart($context->
getToken(),
$context);
$states =
$this->
updateSystemState($cart,
$context,
$request,
$response);
// We need to allow it on login, otherwise the state is wrong
if (!
($route === 'frontend.account.login' ||
$request->
getMethod() === Request::METHOD_GET
)) { return;
}