$transformedRequest->attributes->
set(self::ORIGINAL_REQUEST_URI,
$currentRequestUri);
return $transformedRequest;
} /**
* @return array<string, mixed>
*/
public function extractInheritableAttributes(Request
$sourceRequest): array
{ $inheritableAttributes =
$this->decorated
->
extractInheritableAttributes($sourceRequest);
foreach (self::INHERITABLE_ATTRIBUTE_NAMES
as $attributeName) { if (!
$sourceRequest->attributes->
has($attributeName)) { continue;
} $inheritableAttributes[$attributeName] =
$sourceRequest->attributes->
get($attributeName);
} return $inheritableAttributes;
}