Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commitb399527
committed
feature#28815 YamlEncoder handle yml format (kevin-biig)
This PR was merged into the 4.2-dev branch.Discussion----------YamlEncoder handle yml format| Q | A| ------------- | ---| Branch? | ?| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#28768| License | MIT`Symfony\Component\Serializer\Encoder\YamlEncoder` now handle the `yml` format too```use Symfony\Component\Serializer\Serializer;use Symfony\Component\Serializer\Encoder\YamlEncoder;$serializer = new Serializer([], [new YamlEncoder()]);$content = file_get_contents(__DIR__ . '/test.yml');$data = $serializer->decode($content, YamlEncoder::ALTERNATIVE_FORMAT);```Let me know if something is wrong for youCommits-------d8640f9 YamlEncoder handle yml extensionFile tree
3 files changed
+6
-2
lines changed- src/Symfony/Component/Serializer
- Encoder
- Tests/Encoder
3 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments
Comments
(0)