Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #20861 Add a --show-arguments flag to the debug:container com…
…mand (Cydonia7) This PR was merged into the 3.3-dev branch. Discussion ---------- Add a --show-arguments flag to the debug:container command | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | not yet This PR adds a `--show-arguments` flag to the `debug:container` command that shows arguments in the services in the different available formats. (Ping @dunglas) Commits ------- 5c151d0 Add a --show-arguments flag to the container debug command
- Loading branch information
Showing
10 changed files
with
210 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"definitions": { | ||
"definition_1": { | ||
"class": "Full\\Qualified\\Class1", | ||
"public": true, | ||
"synthetic": false, | ||
"lazy": true, | ||
"shared": true, | ||
"abstract": true, | ||
"file": null, | ||
"factory_class": "Full\\Qualified\\FactoryClass", | ||
"factory_method": "get", | ||
"tags": [ | ||
|
||
], | ||
"autowire": false, | ||
"autowiring_types": [], | ||
"arguments": [ | ||
{ | ||
"type": "service", | ||
"id": "definition2" | ||
}, | ||
"%parameter%", | ||
{ | ||
"class": "inline_service", | ||
"public": true, | ||
"synthetic": false, | ||
"lazy": false, | ||
"shared": true, | ||
"abstract": false, | ||
"autowire": false, | ||
"autowiring_types": [], | ||
"arguments": [ | ||
"arg1", | ||
"arg2" | ||
], | ||
"file": null, | ||
"tags": [] | ||
} | ||
] | ||
} | ||
}, | ||
"aliases": { | ||
"alias_1": { | ||
"service": "service_1", | ||
"public": true | ||
}, | ||
"alias_2": { | ||
"service": "service_2", | ||
"public": false | ||
} | ||
}, | ||
"services": { | ||
"service_container": "Symfony\\Component\\DependencyInjection\\ContainerBuilder" | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Public services | ||
=============== | ||
|
||
Definitions | ||
----------- | ||
|
||
definition_1 | ||
~~~~~~~~~~~~ | ||
- Class: `Full\Qualified\Class1` | ||
- Public: yes | ||
- Synthetic: no | ||
- Lazy: yes | ||
- Shared: yes | ||
- Abstract: yes | ||
- Autowired: no | ||
- Arguments: yes | ||
- Factory Class: `Full\Qualified\FactoryClass` | ||
- Factory Method: `get` | ||
Aliases | ||
------- | ||
alias_1 | ||
~~~~~~~ | ||
- Service: `service_1` | ||
- Public: yes | ||
alias_2 | ||
~~~~~~~ | ||
- Service: `service_2` | ||
- Public: no | ||
Services | ||
-------- | ||
- `service_container`: `Symfony\Component\DependencyInjection\ContainerBuilder` |
13 changes: 13 additions & 0 deletions
13
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
[33mSymfony Container Public Services[39m | ||
[33m=================================[39m | ||
|
||
------------------- -------------------------------------------------------- | ||
[32m Service ID [39m [32m Class name [39m | ||
------------------- -------------------------------------------------------- | ||
alias_1 alias for "service_1" | ||
alias_2 alias for "service_2" | ||
definition_1 Full\Qualified\Class1 | ||
service_container Symfony\Component\DependencyInjection\ContainerBuilder | ||
------------------- -------------------------------------------------------- | ||
|
17 changes: 17 additions & 0 deletions
17
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<container> | ||
<alias id="alias_1" service="service_1" public="true"/> | ||
<alias id="alias_2" service="service_2" public="false"/> | ||
<definition id="definition_1" class="Full\Qualified\Class1" public="true" synthetic="false" lazy="true" shared="true" abstract="true" autowired="false" file=""> | ||
<factory class="Full\Qualified\FactoryClass" method="get"/> | ||
<argument type="service" id="definition2"/> | ||
<argument>%parameter%</argument> | ||
<argument> | ||
<definition class="inline_service" public="true" synthetic="false" lazy="false" shared="true" abstract="false" autowired="false" file=""> | ||
<argument>arg1</argument> | ||
<argument>arg2</argument> | ||
</definition> | ||
</argument> | ||
</definition> | ||
<service id="service_container" class="Symfony\Component\DependencyInjection\ContainerBuilder"/> | ||
</container> |