} } /**
* @param array<string, mixed> $params
*/
private function createRequest(string
$route, array
$params =
[]): Request
{ $request =
new Request();
$request->query->
add($params);
$request->
setSession($this->
getSession());
$request->attributes->
add([ '_route' =>
$route,
SalesChannelRequest::ATTRIBUTE_IS_SALES_CHANNEL_REQUEST => true,
PlatformRequest::ATTRIBUTE_SALES_CHANNEL_ID =>
$this->ids->
get('sales-channel'
),
PlatformRequest::ATTRIBUTE_SALES_CHANNEL_CONTEXT_OBJECT =>
$this->salesChannelContext,
RequestTransformer::STOREFRONT_URL => 'http://localhost',
]);
return $request;
}