[FrameworkBundle] Use more explicite wording for debug:container command

This commit is contained in:
Grégoire Pineau 2021-04-30 17:02:21 +02:00
parent 8ff0a3e6f2
commit 3abebb16de
8 changed files with 18 additions and 21 deletions

View File

@ -234,7 +234,7 @@ class TextDescriptor extends Descriptor
if (0 === $key) { if (0 === $key) {
$tableRows[] = array_merge([$serviceId], $tagValues, [$definition->getClass()]); $tableRows[] = array_merge([$serviceId], $tagValues, [$definition->getClass()]);
} else { } else {
$tableRows[] = array_merge([' "'], $tagValues, ['']); $tableRows[] = array_merge([' (same service as previous, another tag)'], $tagValues, ['']);
} }
} }
} else { } else {

View File

@ -315,7 +315,7 @@ abstract class AbstractDescriptorTest extends TestCase
foreach ($variations as $suffix => $options) { foreach ($variations as $suffix => $options) {
$file = sprintf('%s_%s.%s', trim($name, '.'), $suffix, $this->getFormat()); $file = sprintf('%s_%s.%s', trim($name, '.'), $suffix, $this->getFormat());
$description = file_get_contents(__DIR__.'/../../Fixtures/Descriptor/'.$file); $description = file_get_contents(__DIR__.'/../../Fixtures/Descriptor/'.$file);
$data[] = [$object, $description, $options, $file]; $data[] = [$object, $description, $options];
} }
} }

View File

@ -51,4 +51,3 @@ Aliases
- Service: `service_1` - Service: `service_1`
- Public: yes - Public: yes

View File

@ -48,4 +48,3 @@ Aliases
- Service: `service_1` - Service: `service_1`
- Public: yes - Public: yes

View File

@ -33,4 +33,3 @@ Aliases
- Service: `.service_2` - Service: `.service_2`
- Public: no - Public: no

View File

@ -2,10 +2,10 @@
Symfony Container Hidden Services Tagged with "tag1" Tag Symfony Container Hidden Services Tagged with "tag1" Tag
======================================================== ========================================================
--------------- ------- ------- ------- ----------------------- ------------------------------------------ ------- ------- ------- -----------------------
 Service ID   attr1   attr2   attr3   Class name   Service ID   attr1   attr2   attr3   Class name 
--------------- ------- ------- ------- ----------------------- ------------------------------------------ ------- ------- ------- -----------------------
.definition_2 val1 val2 Full\Qualified\Class2 .definition_2 val1 val2 Full\Qualified\Class2
" val3 (same service as previous, another tag) val3
--------------- ------- ------- ------- ----------------------- ------------------------------------------ ------- ------- ------- -----------------------

View File

@ -2,13 +2,13 @@
Symfony Container Services Tagged with "tag1" Tag Symfony Container Services Tagged with "tag1" Tag
================================================= =================================================
-------------- ------- ------- ---------- ------- ----------------------- ------------------------------------------ ------- ------- ---------- ------- -----------------------
 Service ID   attr1   attr2   priority   attr3   Class name   Service ID   attr1   attr2   priority   attr3   Class name 
-------------- ------- ------- ---------- ------- ----------------------- ------------------------------------------ ------- ------- ---------- ------- -----------------------
definition_3 40 val3 Full\Qualified\Class3 definition_3 40 val3 Full\Qualified\Class3
" val1 val2 0 (same service as previous, another tag) val1 val2 0
definition_1 val1 30 Full\Qualified\Class1 definition_1 val1 30 Full\Qualified\Class1
" val2 (same service as previous, another tag) val2
definition_2 val1 val2 -20 Full\Qualified\Class2 definition_2 val1 val2 -20 Full\Qualified\Class2
-------------- ------- ------- ---------- ------- ----------------------- ------------------------------------------ ------- ------- ---------- ------- -----------------------