{ } public function resolve(SymfonyRequest
$request): void
{ if (!
$request->attributes->
has(PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID
)) { $this->decorated->
resolve($request);
return;
} if (!
$this->
isRequestScoped($request, SalesChannelContextRouteScopeDependant::
class)) { return;
} if (!
$request->headers->
has(PlatformRequest::HEADER_CONTEXT_TOKEN
)) { if ($this->
contextTokenRequired($request)) { throw RoutingException::
missingRequestParameter(PlatformRequest::HEADER_CONTEXT_TOKEN
);
} $request->headers->
set(PlatformRequest::HEADER_CONTEXT_TOKEN, Random::
getAlphanumericString(32
));
}