Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[JsonEncoder] Rename the component toJsonStreamer#59863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.3frommtarld:chore/json-streamer
Mar 3, 2025

Conversation

mtarld
Copy link
Contributor

QA
Branch?7.3
Bug fix?no
New feature?no
Deprecations?no
Issues
LicenseMIT

In order to make the intent of the component clearer, theJsonEncoder component should be renamed toJsonStreamer, as its main goal is to handle JSON streams as efficiently as possible.

In that way, it'll be harder for developers to get confused between this component and theSerializer's JSON encoder.

In that PR, the following public API has been updated:

  • EncoderInterface::encode() has been renamed toStreamWriterInterface::write()
  • DecoderInterface::decode() has been renamed toStreamReaderInterface::read()
  • theJsonEncoder class has been renamed toJsonStreamWriter
  • theJsonDecoder class has been renamed toJsonStreamReader
  • theJsonEncodable attribute has been renamed toJsonStreamable
  • theEncodedName attribute has been renamed toStreamedName
  • ValueTransformerInterface::getJsonValueType() has been renamed toValueTransformerInterface::getStreamValueType()
  • ValueTransformer::$toJsonValue has been renamed toValueTransformer::$nativeToStream
  • ValueTransformer::$toNativeValue has been renamed toValueTransformer::$streamToNative

alexandre-daubois, mahono, welcoMattic, smnandre, dmaicher, chalasr, wickedOne, dsentker, adamwojs, Gemorroj, and Nyholm reacted with thumbs up emoji
@alexandre-daubois
Copy link
Member

Makes sense, even more when I think of how it's leveraged in#59655

mtarld reacted with thumbs up emoji

@fabpot
Copy link
Member

Thank you@mtarld.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

4 participants
@mtarld@alexandre-daubois@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp