Skip to content

Commit a81a6f3

Browse files
committed
[FrameworkBundle][Console] JsonDescriptor: Respect original output
1 parent b2a11ec commit a81a6f3

File tree

7 files changed

+10
-30
lines changed

7 files changed

+10
-30
lines changed

Tests/Fixtures/Descriptor/builder_1_public.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"file": null,
1212
"factory_class": "Full\\Qualified\\FactoryClass",
1313
"factory_method": "get",
14-
"tags": [
15-
16-
]
14+
"tags": []
1715
}
1816
},
1917
"aliases": {

Tests/Fixtures/Descriptor/builder_1_services.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"file": null,
1212
"factory_class": "Full\\Qualified\\FactoryClass",
1313
"factory_method": "get",
14-
"tags": [
15-
16-
]
14+
"tags": []
1715
},
1816
"definition_2": {
1917
"class": "Full\\Qualified\\Class2",
@@ -42,9 +40,7 @@
4240
},
4341
{
4442
"name": "tag2",
45-
"parameters": [
46-
47-
]
43+
"parameters": []
4844
}
4945
]
5046
}

Tests/Fixtures/Descriptor/builder_1_tag1.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,11 @@
2727
},
2828
{
2929
"name": "tag2",
30-
"parameters": [
31-
32-
]
30+
"parameters": []
3331
}
3432
]
3533
}
3634
},
37-
"aliases": [
38-
39-
],
40-
"services": [
41-
42-
]
35+
"aliases": [],
36+
"services": []
4337
}

Tests/Fixtures/Descriptor/definition_1.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
"file": null,
1010
"factory_class": "Full\\Qualified\\FactoryClass",
1111
"factory_method": "get",
12-
"tags": [
13-
14-
]
12+
"tags": []
1513
}

Tests/Fixtures/Descriptor/definition_2.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
},
2626
{
2727
"name": "tag2",
28-
"parameters": [
29-
30-
]
28+
"parameters": []
3129
}
3230
]
3331
}

Tests/Fixtures/Descriptor/route_2.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"scheme": "http|https",
77
"method": "PUT|POST",
88
"class": "Symfony\\Component\\Routing\\Route",
9-
"defaults": [
10-
11-
],
9+
"defaults": [],
1210
"requirements": "NO CUSTOM",
1311
"options": {
1412
"compiler_class": "Symfony\\Component\\Routing\\RouteCompiler",

Tests/Fixtures/Descriptor/route_collection_1.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
"scheme": "http|https",
2828
"method": "PUT|POST",
2929
"class": "Symfony\\Component\\Routing\\Route",
30-
"defaults": [
31-
32-
],
30+
"defaults": [],
3331
"requirements": "NO CUSTOM",
3432
"options": {
3533
"compiler_class": "Symfony\\Component\\Routing\\RouteCompiler",

0 commit comments

Comments
 (0)