Commit af2f36b
committed
feature symfony#59863 [JsonEncoder] Rename the component to
This PR was merged into the 7.3 branch.
Discussion
----------
[JsonEncoder] Rename the component to `JsonStreamer`
| Q | A
| ------------- | ---
| Branch? | 7.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
In order to make the intent of the component clearer, the `JsonEncoder` component should be renamed to `JsonStreamer`, 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 the `Serializer`'s JSON encoder.
In that PR, the following public API has been updated:
- `EncoderInterface::encode()` has been renamed to `StreamWriterInterface::write()`
- `DecoderInterface::decode()` has been renamed to `StreamReaderInterface::read()`
- the `JsonEncoder` class has been renamed to `JsonStreamWriter`
- the `JsonDecoder` class has been renamed to `JsonStreamReader`
- the `JsonEncodable` attribute has been renamed to `JsonStreamable`
- the `EncodedName` attribute has been renamed to `StreamedName`
- `ValueTransformerInterface::getJsonValueType()` has been renamed to `ValueTransformerInterface::getStreamValueType()`
- `ValueTransformer::$toJsonValue` has been renamed to `ValueTransformer::$nativeToStream`
- `ValueTransformer::$toNativeValue` has been renamed to `ValueTransformer::$streamToNative`
Commits
-------
924a01d [JsonStreamer] Rename the componentJsonStreamer (mtarld)File tree
251 files changed
+2522
-2544
lines changed- src/Symfony
- Bundle/FrameworkBundle
- DependencyInjection
- Compiler
- Resources/config
- schema
- Tests
- DependencyInjection
- Fixtures
- php
- xml
- yml
- Functional
- app
- JsonEncoder
- Dto
- JsonStreamer
- Dto
- Component
- JsonEncoder
- Attribute
- CacheWarmer
- Mapping
- Tests
- CacheWarmer
- DependencyInjection
- Fixtures
- Attribute
- Enum
- Model
- decoder
- JsonStreamer
- Attribute
- CacheWarmer
- DataModel
- Read
- Write
- DependencyInjection
- Exception
- Mapping
- Read
- Write
- Read
- Tests
- Attribute
- CacheWarmer
- DataModel
- Read
- Write
- DependencyInjection
- Fixtures
- Attribute
- Enum
- Model
- ValueTransformer
- stream_reader
- stream_writer
- Mapping
- Read
- Write
- Read
- ValueTransformer
- Write
- ValueTransformer
- Write
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
251 files changed
+2522
-2544
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
2692 | 2692 | | |
2693 | 2693 | | |
2694 | 2694 | | |
2695 | | - | |
| 2695 | + | |
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
2699 | | - | |
2700 | | - | |
2701 | | - | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
| |||
Lines changed: 21 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
759 | | - | |
| 758 | + | |
| 759 | + | |
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| |||
2033 | 2033 | | |
2034 | 2034 | | |
2035 | 2035 | | |
2036 | | - | |
| 2036 | + | |
2037 | 2037 | | |
2038 | | - | |
2039 | | - | |
| 2038 | + | |
| 2039 | + | |
2040 | 2040 | | |
2041 | 2041 | | |
2042 | 2042 | | |
2043 | | - | |
| 2043 | + | |
2044 | 2044 | | |
2045 | | - | |
| 2045 | + | |
2046 | 2046 | | |
2047 | | - | |
2048 | | - | |
| 2047 | + | |
| 2048 | + | |
2049 | 2049 | | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2053 | 2053 | | |
2054 | 2054 | | |
2055 | | - | |
| 2055 | + | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
Lines changed: 0 additions & 119 deletions
This file was deleted.
0 commit comments