diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json
index ac6d122ce4539..473709247839b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.json
@@ -10,6 +10,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
@@ -65,6 +66,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "inline factory service (Full\\Qualified\\FactoryClass)",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md
index 6dfab327d037a..64801e03b66d5 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_services.md
@@ -15,6 +15,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
@@ -40,6 +41,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: inline factory service (`Full\Qualified\FactoryClass`)
- Factory Method: `get`
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json
index 5e60f26d170b7..cead51aa9232a 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.json
@@ -10,6 +10,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md
index aeae0d9f294ce..8e92293499652 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tag1.md
@@ -15,6 +15,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json
index 518f694ea3451..6775a0e36167b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.json
@@ -10,6 +10,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
@@ -30,6 +31,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
@@ -50,6 +52,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md
index 80da2ddafd560..cc0496e28e770 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_tags.md
@@ -15,6 +15,7 @@ tag1
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
@@ -36,6 +37,7 @@ tag2
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
@@ -57,6 +59,7 @@ tag3
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.json
index 75d893297cd24..d9c3d050c11bc 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.json
@@ -10,6 +10,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"tags": [
{
@@ -40,6 +41,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
@@ -77,6 +79,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"tags": [
{
@@ -98,6 +101,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"tags": [
{
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.md
index 7137e1b1d81d1..90ef56ee45973 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_priority_tag.md
@@ -15,6 +15,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Tag: `tag1`
- Attr3: val3
@@ -36,6 +37,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
@@ -59,6 +61,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Tag: `tag1`
- Priority: 0
@@ -75,6 +78,7 @@ Definitions
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Tag: `tag1`
- Attr1: val1
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json
index 735b3df470887..b0a612030cae1 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.json
@@ -8,6 +8,67 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [
+ {
+ "type": "service",
+ "id": ".definition_2"
+ },
+ "%parameter%",
+ {
+ "class": "inline_service",
+ "public": false,
+ "synthetic": false,
+ "lazy": false,
+ "shared": true,
+ "abstract": false,
+ "autowire": false,
+ "autoconfigure": false,
+ "deprecated": false,
+ "arguments": [
+ "arg1",
+ "arg2"
+ ],
+ "file": null,
+ "tags": [],
+ "usages": []
+ },
+ [
+ "foo",
+ {
+ "type": "service",
+ "id": ".definition_2"
+ },
+ {
+ "class": "inline_service",
+ "public": false,
+ "synthetic": false,
+ "lazy": false,
+ "shared": true,
+ "abstract": false,
+ "autowire": false,
+ "autoconfigure": false,
+ "deprecated": false,
+ "arguments": [],
+ "file": null,
+ "tags": [],
+ "usages": []
+ }
+ ],
+ [
+ {
+ "type": "service",
+ "id": "definition_1"
+ },
+ {
+ "type": "service",
+ "id": ".definition_2"
+ }
+ ],
+ {
+ "type": "abstract",
+ "text": "placeholder"
+ }
+ ],
"file": null,
"factory_class": "Full\\Qualified\\FactoryClass",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md
index c7ad62954ebc3..b99162bbf439d 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.md
@@ -7,6 +7,7 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: yes
- Factory Class: `Full\Qualified\FactoryClass`
- Factory Method: `get`
- Usages: none
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.txt b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.txt
index 8ec7be868ca65..775a04c843e2b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.txt
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.txt
@@ -1,18 +1,25 @@
- ---------------- -----------------------------
- [32m Option [39m [32m Value [39m
- ---------------- -----------------------------
- Service ID -
- Class Full\Qualified\Class1
- Tags -
- Public yes
- Synthetic no
- Lazy yes
- Shared yes
- Abstract yes
- Autowired no
- Autoconfigured no
- Factory Class Full\Qualified\FactoryClass
- Factory Method get
- Usages none
- ---------------- -----------------------------
-
+ ---------------- ---------------------------------
+ [32m Option [39m [32m Value [39m
+ ---------------- ---------------------------------
+ Service ID -
+ Class Full\Qualified\Class1
+ Tags -
+ Public yes
+ Synthetic no
+ Lazy yes
+ Shared yes
+ Abstract yes
+ Autowired no
+ Autoconfigured no
+ Factory Class Full\Qualified\FactoryClass
+ Factory Method get
+ Arguments Service(.definition_2)
+ %parameter%
+ Inlined Service
+ Array (3 element(s))
+ Iterator (2 element(s))
+ - Service(definition_1)
+ - Service(.definition_2)
+ Abstract argument (placeholder)
+ Usages none
+ ---------------- ---------------------------------
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.xml
index be2b16b57ffa7..eba7e7bbdcd7f 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.xml
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_1.xml
@@ -1,4 +1,24 @@
+
+ %parameter%
+
+
+ arg1
+ arg2
+
+
+
+ foo
+
+
+
+
+
+
+
+
+
+ placeholder
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json
index a661428c9cb08..eeeb6f44a448b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.json
@@ -8,6 +8,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "factory.service",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.md
index 486f35fb77a27..5b427bff5a26f 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_2.md
@@ -7,6 +7,7 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: `factory.service`
- Factory Method: `get`
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.json
index 11768d0de1a45..c96c06d63ad0e 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.json
@@ -8,6 +8,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": "\/path\/to\/file",
"factory_service": "inline factory service (Full\\Qualified\\FactoryClass)",
"factory_method": "get",
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.md
index 8a9651641d747..5bfafe3d0e28a 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_3.md
@@ -7,6 +7,7 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- File: `/path/to/file`
- Factory Service: inline factory service (`Full\Qualified\FactoryClass`)
- Factory Method: `get`
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.json
index 078f7cdca6b4b..c1305ac0c56c1 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.json
@@ -8,6 +8,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": null,
"tags": [],
"usages": []
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.md
index be221535f9889..7c7bad74dcf06 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_without_class.md
@@ -7,4 +7,5 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- Usages: none
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.json
index c6de89ce5cd94..00c8a5be07a08 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.json
@@ -9,6 +9,7 @@
"autoconfigure": false,
"deprecated": false,
"description": "This is a class with a doc comment.",
+ "arguments": [],
"file": null,
"tags": [],
"usages": []
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.md
index 132147324bceb..907f694608347 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_1.md
@@ -8,4 +8,5 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- Usages: none
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.json b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.json
index 7b387fd8683c1..88a59851a784b 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.json
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.json
@@ -8,6 +8,7 @@
"autowire": false,
"autoconfigure": false,
"deprecated": false,
+ "arguments": [],
"file": null,
"tags": [],
"usages": []
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.md b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.md
index 0526ba117ecaa..8fd89fb0f1fd9 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.md
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/existing_class_def_2.md
@@ -7,4 +7,5 @@
- Autowired: no
- Autoconfigured: no
- Deprecated: no
+- Arguments: no
- Usages: none
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php
index bb80a448429d5..b5d395a23296d 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php
@@ -341,4 +341,22 @@ public static function provideCompletionSuggestions(): iterable
['txt', 'xml', 'json', 'md'],
];
}
+
+ public function testShowArgumentsNotProvidedShouldTriggerDeprecation()
+ {
+ static::bootKernel(['test_case' => 'ContainerDebug', 'root_config' => 'config.yml', 'debug' => true]);
+ $path = sprintf('%s/%sDeprecations.log', static::$kernel->getContainer()->getParameter('kernel.build_dir'), static::$kernel->getContainer()->getParameter('kernel.container_class'));
+ @unlink($path);
+
+ $application = new Application(static::$kernel);
+ $application->setAutoExit(false);
+
+ @unlink(static::getContainer()->getParameter('debug.container.dump'));
+
+ $tester = new ApplicationTester($application);
+ $tester->run(['command' => 'debug:container', 'name' => 'router', '--show-arguments' => true]);
+
+ $tester->assertCommandIsSuccessful();
+ $this->assertStringContainsString('[WARNING] The "--show-arguments" option is deprecated.', $tester->getDisplay());
+ }
}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy