Skip to content

Commit 424440a

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: tweak the factory class description for inlined factory services skip a transient test on Windows [Console] [Completion] Make fish completion run in non interactive mode Make bash completion run in non interactive mode
2 parents de33038 + e17f437 commit 424440a

15 files changed

+49
-49
lines changed

Console/Descriptor/JsonDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function getContainerDefinitionData(Definition $definition, bool $omitTa
252252
if ($factory[0] instanceof Reference) {
253253
$data['factory_service'] = (string) $factory[0];
254254
} elseif ($factory[0] instanceof Definition) {
255-
$data['factory_class'] = $factory[0]->getClass() ?? 'not configured';
255+
$data['factory_service'] = sprintf('inline factory service (%s)', $factory[0]->getClass() ?? 'class not configured');
256256
} else {
257257
$data['factory_class'] = $factory[0];
258258
}

Console/Descriptor/MarkdownDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
231231
if ($factory[0] instanceof Reference) {
232232
$output .= "\n".'- Factory Service: `'.$factory[0].'`';
233233
} elseif ($factory[0] instanceof Definition) {
234-
$output .= "\n".'- Factory Class: `'.($factory[0]->getClass() ?? 'not configured').'`';
234+
$output .= "\n".sprintf('- Factory Service: inline factory service (%s)', $factory[0]->getClass() ? sprintf('`%s`', $factory[0]->getClass()) : 'not configured');
235235
} else {
236236
$output .= "\n".'- Factory Class: `'.$factory[0].'`';
237237
}

Console/Descriptor/TextDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ protected function describeContainerDefinition(Definition $definition, array $op
315315
if ($factory[0] instanceof Reference) {
316316
$tableRows[] = ['Factory Service', $factory[0]];
317317
} elseif ($factory[0] instanceof Definition) {
318-
$tableRows[] = ['Factory Class', $factory[0]->getClass() ?? 'not configured'];
318+
$tableRows[] = ['Factory Service', sprintf('inline factory service (%s)', $factory[0]->getClass() ?? 'class not configured')];
319319
} else {
320320
$tableRows[] = ['Factory Class', $factory[0]];
321321
}

Console/Descriptor/XmlDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ private function getContainerDefinitionDocument(Definition $definition, string $
324324
if ($factory[0] instanceof Reference) {
325325
$factoryXML->setAttribute('service', (string) $factory[0]);
326326
} elseif ($factory[0] instanceof Definition) {
327-
$factoryXML->setAttribute('class', $factory[0]->getClass() ?? 'not configured');
327+
$factoryXML->setAttribute('service', sprintf('inline factory service (%s)', $factory[0]->getClass() ?? 'not configured'));
328328
} else {
329329
$factoryXML->setAttribute('class', $factory[0]);
330330
}

Tests/Fixtures/Descriptor/builder_1_services.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"autoconfigure": false,
4949
"deprecated": false,
5050
"file": "\/path\/to\/file",
51-
"factory_class": "Full\\Qualified\\FactoryClass",
51+
"factory_service": "inline factory service (Full\\Qualified\\FactoryClass)",
5252
"factory_method": "get",
5353
"tags": [],
5454
"usages": []

Tests/Fixtures/Descriptor/builder_1_services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Definitions
3939
- Autoconfigured: no
4040
- Deprecated: no
4141
- File: `/path/to/file`
42-
- Factory Class: `Full\Qualified\FactoryClass`
42+
- Factory Service: inline factory service (`Full\Qualified\FactoryClass`)
4343
- Factory Method: `get`
4444
- Usages: none
4545

Tests/Fixtures/Descriptor/builder_1_services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
</tags>
1919
</definition>
2020
<definition id=".definition_3" class="Full\Qualified\Class3" public="false" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" deprecated="false" file="/path/to/file">
21-
<factory class="Full\Qualified\FactoryClass" method="get"/>
21+
<factory service="inline factory service (Full\Qualified\FactoryClass)" method="get"/>
2222
</definition>
2323
</container>

Tests/Fixtures/Descriptor/definition_3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"autoconfigure": false,
1010
"deprecated": false,
1111
"file": "\/path\/to\/file",
12-
"factory_class": "Full\\Qualified\\FactoryClass",
12+
"factory_service": "inline factory service (Full\\Qualified\\FactoryClass)",
1313
"factory_method": "get",
1414
"tags": [],
1515
"usages": []

Tests/Fixtures/Descriptor/definition_3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
- Autoconfigured: no
99
- Deprecated: no
1010
- File: `/path/to/file`
11-
- Factory Class: `Full\Qualified\FactoryClass`
11+
- Factory Service: inline factory service (`Full\Qualified\FactoryClass`)
1212
- Factory Method: `get`
1313
- Usages: none
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
---------------- -----------------------------
2-
 Option   Value 
3-
---------------- -----------------------------
4-
Service ID -
5-
Class Full\Qualified\Class3
6-
Tags -
7-
Public no
8-
Synthetic no
9-
Lazy no
10-
Shared yes
11-
Abstract no
12-
Autowired no
13-
Autoconfigured no
14-
Required File /path/to/file
15-
Factory Class Full\Qualified\FactoryClass
16-
Factory Method get
17-
Usages none
18-
---------------- -----------------------------
1+
----------------- ------------------------------------------------------
2+
 Option   Value 
3+
----------------- ------------------------------------------------------
4+
Service ID -
5+
Class Full\Qualified\Class3
6+
Tags -
7+
Public no
8+
Synthetic no
9+
Lazy no
10+
Shared yes
11+
Abstract no
12+
Autowired no
13+
Autoconfigured no
14+
Required File /path/to/file
15+
Factory Service inline factory service (Full\Qualified\FactoryClass)
16+
Factory Method get
17+
Usages none
18+
----------------- ------------------------------------------------------
1919

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<definition class="Full\Qualified\Class3" public="false" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" deprecated="false" file="/path/to/file">
3-
<factory class="Full\Qualified\FactoryClass" method="get"/>
3+
<factory service="inline factory service (Full\Qualified\FactoryClass)" method="get"/>
44
</definition>

Tests/Fixtures/Descriptor/definition_arguments_3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"deprecated": false,
1111
"arguments": [],
1212
"file": "\/path\/to\/file",
13-
"factory_class": "Full\\Qualified\\FactoryClass",
13+
"factory_service": "inline factory service (Full\\Qualified\\FactoryClass)",
1414
"factory_method": "get",
1515
"tags": [],
1616
"usages": []

Tests/Fixtures/Descriptor/definition_arguments_3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
- Deprecated: no
1010
- Arguments: no
1111
- File: `/path/to/file`
12-
- Factory Class: `Full\Qualified\FactoryClass`
12+
- Factory Service: inline factory service (`Full\Qualified\FactoryClass`)
1313
- Factory Method: `get`
1414
- Usages: none
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
---------------- -----------------------------
2-
 Option   Value 
3-
---------------- -----------------------------
4-
Service ID -
5-
Class Full\Qualified\Class3
6-
Tags -
7-
Public no
8-
Synthetic no
9-
Lazy no
10-
Shared yes
11-
Abstract no
12-
Autowired no
13-
Autoconfigured no
14-
Required File /path/to/file
15-
Factory Class Full\Qualified\FactoryClass
16-
Factory Method get
17-
Usages none
18-
---------------- -----------------------------
1+
----------------- ------------------------------------------------------
2+
 Option   Value 
3+
----------------- ------------------------------------------------------
4+
Service ID -
5+
Class Full\Qualified\Class3
6+
Tags -
7+
Public no
8+
Synthetic no
9+
Lazy no
10+
Shared yes
11+
Abstract no
12+
Autowired no
13+
Autoconfigured no
14+
Required File /path/to/file
15+
Factory Service inline factory service (Full\Qualified\FactoryClass)
16+
Factory Method get
17+
Usages none
18+
----------------- ------------------------------------------------------
1919

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<definition class="Full\Qualified\Class3" public="false" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" autoconfigured="false" deprecated="false" file="/path/to/file">
3-
<factory class="Full\Qualified\FactoryClass" method="get"/>
3+
<factory service="inline factory service (Full\Qualified\FactoryClass)" method="get"/>
44
</definition>

0 commit comments

Comments
 (0)