Skip to content

Commit 46c8646

Browse files
committed
fix(symfony): set normalization context in request attributes
1 parent f63fd81 commit 46c8646

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/State/Provider/ReadProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
7575
'resource_class' => $operation->getClass(),
7676
'operation' => $operation,
7777
]);
78+
$request?->attributes->set('_api_normalization_context', $context);
7879
}
7980

8081
try {

0 commit comments

Comments
 (0)