CARVIEW |
Select Language
HTTP/2 200
date: Mon, 25 Aug 2025 00:24:17 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/symfony/symfony.git
etag: W/"cf5c69fb490495b98197736e45e43249"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Cx6J8PYmq2YEZ7BW1M7gsRZ40MQJTJ081u2cQaYlyGbl6hrvx2I5s9S60TtxodQVlWHkSWBVD96rIpR4t%2FF793QfFsXBrhPiPyf72egGi%2BhRD6m1oXxQJpTMMfmlU9Dz9bxT%2FbPz8E%2FU%2B5WvukEn7Jq2i3%2BLIGRqjpsvGB2i1SXqN6S3SVYh2hTPMl7kQHLOX4q1c5QHaaAM5f3uNsJWaB%2FhByFOeUK%2BkhtT0brwxoYgl7NtEmUmVyfJ6wXg%2FqHxwhMl%2BcWc7vO7UA0fCGKgHg%3D%3D--adJk1nygufRdDq4j--CO7%2B2EAY31ELdfqV4C%2FFPA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.59847698.1756081456; Path=/; Domain=github.com; Expires=Tue, 25 Aug 2026 00:24:16 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 25 Aug 2026 00:24:16 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DE88:1694EE:12CEEBF:18D2234:68ABAD30
feature #61006 [JsonStreamer] Provide current object to value transfo… · symfony/symfony@8c3d388 · GitHub
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/CHANGELOG.md
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_value_transformer.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Tests/JsonStreamWriterTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/ValueTransformer/ValueTransformerInterface.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Write/StreamWriterGenerator.php
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit 8c3d388
committed
feature #61006 [JsonStreamer] Provide current object to value transformers (mtarld)
This PR was merged into the 7.4 branch.
Discussion
----------
[JsonStreamer] Provide current object to value transformers
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues |
| License | MIT
A new attempt to #59281.
As discussed with `@soyuka`, it is really important to have access to the current object during stream writing.
Without that, it'll for example be impossible for API Platform to generate resource IRIs (https://github.com/api-platform/core/blob/main/src/Metadata/IriConverterInterface.php#L46).
This PR makes is available in value transformers' `$context` under the `_current_object` key.
Commits
-------
e9dcd42 [JsonStreamer] Allow to access current object when writingFile tree
Expand file treeCollapse file tree
5 files changed
+46
-6
lines changedFilter options
- src/Symfony/Component/JsonStreamer
- Tests
- Fixtures/stream_writer
- ValueTransformer
- Write
Expand file treeCollapse file tree
5 files changed
+46
-6
lines changedsrc/Symfony/Component/JsonStreamer/CHANGELOG.md
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/CHANGELOG.md+1Lines changed: 1 addition & 0 deletions
- Display the source diff
- Display the rich diff
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
|
src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_value_transformer.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Tests/Fixtures/stream_writer/object_with_value_transformer.php+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
src/Symfony/Component/JsonStreamer/Tests/JsonStreamWriterTest.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Tests/JsonStreamWriterTest.php+36Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
193 | 229 |
| |
194 | 230 |
| |
195 | 231 |
| |
|
src/Symfony/Component/JsonStreamer/ValueTransformer/ValueTransformerInterface.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/ValueTransformer/ValueTransformerInterface.php+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 |
| |
28 | 31 |
| |
29 | 32 |
| |
|
src/Symfony/Component/JsonStreamer/Write/StreamWriterGenerator.php
Copy file name to clipboardExpand all lines: src/Symfony/Component/JsonStreamer/Write/StreamWriterGenerator.php+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
| 141 | + | |
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
| 155 | + | |
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
|
You can’t perform that action at this time.
0 commit comments