Skip to content

Commit 59e8646

Browse files
committed
[FrameworkBundle] Use more explicite wording for debug:container command
1 parent ac38b1a commit 59e8646

File tree

8 files changed

+18
-21
lines changed

8 files changed

+18
-21
lines changed

Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
234234
if (0 === $key) {
235235
$tableRows[] = array_merge([$serviceId], $tagValues, [$definition->getClass()]);
236236
} else {
237-
$tableRows[] = array_merge([' "'], $tagValues, ['']);
237+
$tableRows[] = array_merge([' (same service as previous, another tag)'], $tagValues, ['']);
238238
}
239239
}
240240
} else {

Tests/Console/Descriptor/AbstractDescriptorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public function getDescribeContainerBuilderWithPriorityTagsTestData(): array
315315
foreach ($variations as $suffix => $options) {
316316
$file = sprintf('%s_%s.%s', trim($name, '.'), $suffix, $this->getFormat());
317317
$description = file_get_contents(__DIR__.'/../../Fixtures/Descriptor/'.$file);
318-
$data[] = [$object, $description, $options, $file];
318+
$data[] = [$object, $description, $options];
319319
}
320320
}
321321

Tests/Fixtures/Descriptor/builder_1_arguments.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ Aliases
5151

5252
- Service: `service_1`
5353
- Public: yes
54-

Tests/Fixtures/Descriptor/builder_1_public.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ Aliases
4848

4949
- Service: `service_1`
5050
- Public: yes
51-

Tests/Fixtures/Descriptor/builder_1_services.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ Aliases
3333

3434
- Service: `.service_2`
3535
- Public: no
36-

Tests/Fixtures/Descriptor/builder_1_services.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
--------------- ------------------------
88
.alias_2 alias for ".service_2"
99
.definition_2 Full\Qualified\Class2
10-
--------------- ------------------------
10+
--------------- ------------------------
1111

Tests/Fixtures/Descriptor/builder_1_tag1.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
Symfony Container Hidden Services Tagged with "tag1" Tag
33
========================================================
44

5-
--------------- ------- ------- ------- -----------------------
6-
 Service ID   attr1   attr2   attr3   Class name 
7-
--------------- ------- ------- ------- -----------------------
8-
.definition_2 val1 val2 Full\Qualified\Class2
9-
" val3
10-
--------------- ------- ------- ------- -----------------------
5+
------------------------------------------ ------- ------- ------- -----------------------
6+
 Service ID   attr1   attr2   attr3   Class name 
7+
------------------------------------------ ------- ------- ------- -----------------------
8+
.definition_2 val1 val2 Full\Qualified\Class2
9+
(same service as previous, another tag) val3
10+
------------------------------------------ ------- ------- ------- -----------------------
1111

Tests/Fixtures/Descriptor/builder_priority_tag.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
Symfony Container Services Tagged with "tag1" Tag
33
=================================================
44

5-
-------------- ------- ------- ---------- ------- -----------------------
6-
 Service ID   attr1   attr2   priority   attr3   Class name 
7-
-------------- ------- ------- ---------- ------- -----------------------
8-
definition_3 40 val3 Full\Qualified\Class3
9-
" val1 val2 0
10-
definition_1 val1 30 Full\Qualified\Class1
11-
" val2
12-
definition_2 val1 val2 -20 Full\Qualified\Class2
13-
-------------- ------- ------- ---------- ------- -----------------------
5+
------------------------------------------ ------- ------- ---------- ------- -----------------------
6+
 Service ID   attr1   attr2   priority   attr3   Class name 
7+
------------------------------------------ ------- ------- ---------- ------- -----------------------
8+
definition_3 40 val3 Full\Qualified\Class3
9+
(same service as previous, another tag) val1 val2 0
10+
definition_1 val1 30 Full\Qualified\Class1
11+
(same service as previous, another tag) val2
12+
definition_2 val1 val2 -20 Full\Qualified\Class2
13+
------------------------------------------ ------- ------- ---------- ------- -----------------------
1414

0 commit comments

Comments
 (0)