-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Bug Report
| Q | A |
|---|---|
| Version(s) | all of them |
Summary
Metadata values are not transferred to PSR-7 attributes. The other way round is also missing, from PSR-7 to Laminas.
How to reproduce
$request = new \Laminas\Http\Request('GET', '/metadata-to-attributes', [], [], [], [], [], []);
$request->setMetadata('metadata-key', 'metadata-value');
$psr7Request = \Laminas\Psr7Bridge\Psr7ServerRequest::fromLaminas($request);
if ($psr7Request->getAttribute('metadata-key') === 'metadata-value') {
echo 'transformation complete';
} else {
echo 'transformation incomplete';
}Expected behavior
I would assume that the metadata from laminas request object are transferred to the PSR-7 request.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels