-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add a --show-arguments flag to the debug:container command #20861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As pointed out, there should be something like: