Commit bf1ffd3
committed
bug #54273 [DependencyInjection] fix XmlDumper when a tag contains also a 'name' property (lyrixx)
This PR was merged into the 6.4 branch.
Discussion
----------
[DependencyInjection] fix XmlDumper when a tag contains also a 'name' property
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
Since #47364, the tag can contain an **array** of attributes.
And since #47364, SF uses it to store workflow metadata and also a **name** property.
It likely broke the XML generation, and so it brokes `debug:router` command for instance.
Sorry, I didn't notice it before!
Before the patch, I got that in my container var/cache/dev/App_KernelDevDebugContainer.xml
```xml
<tag>workflow<attribute name="name">article</attribute><attribute name="metadata"><attribute name="title">Manage article</attribute></attribute></tag>
```
After, I got
```xml
<tag name="workflow">
<attribute name="name">article</attribute>
<attribute name="metadata">
<attribute name="title">Manage article</attribute>
</attribute>
</tag>
```
Commits
-------
4a4b011 [DependencyInjection] fix XmlDumper when a tag contains also a 'name' propertyFile tree
5 files changed
+10
-7
lines changed- src/Symfony/Component/DependencyInjection
- Dumper
- Tests
- Fixtures
- containers
- xml
- yaml
- Loader
5 files changed
+10
-7
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 137 | | |
143 | 138 | | |
144 | 139 | | |
| 140 | + | |
145 | 141 | | |
146 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments