Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #21129 [FrameworkBundle] Display original definition for alia…
…ses in debug:container (chalasr) This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle] Display original definition for aliases in debug:container | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20954 | License | MIT | Doc PR | n/a Before ![before-txt](http://image.prntscr.com/image/b0cb59f23ddb43669ba0aba093f454af.png) After ![after-txt](http://image.prntscr.com/image/adf234957acf444292e45bded8efb9d8.png) <details> <summary>XML output</summary> Before ![before-xml](http://image.prntscr.com/image/66212d92db654f88b8196b211046bcf2.png) After ![after-xml](http://image.prntscr.com/image/3f6b5f9f1ea54a31aea36de5928b6ae9.png) </details> <details> <summary>JSON output</summary> Before ![before-json](http://image.prntscr.com/image/a7ffc4bcda61486f90af85c90e3d6caa.png) After ![after-json](http://image.prntscr.com/image/15d0f37e78354dcf8e3015b94fcbdaed.png) </details> <details> <summary>Markdown output</summary> Before ![before-md](http://image.prntscr.com/image/be5289840ac64a5e80f11748f481686c.png) After ![after-md](http://image.prntscr.com/image/cba4217863f647e9974e1715812eda01.png) </details> Commits ------- cd4b15e [FrameworkBundle] Display original definition for aliases in debug:container
- Loading branch information
Showing
14 changed files
with
266 additions
and
24 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
20 changes: 20 additions & 0 deletions
20
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.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,20 @@ | ||
[ | ||
{ | ||
"service": "service_1", | ||
"public": true | ||
}, | ||
{ | ||
"class": "Full\\Qualified\\Class1", | ||
"public": true, | ||
"synthetic": false, | ||
"lazy": true, | ||
"shared": true, | ||
"abstract": true, | ||
"autowire": false, | ||
"autowiring_types": [], | ||
"file": null, | ||
"factory_class": "Full\\Qualified\\FactoryClass", | ||
"factory_method": "get", | ||
"tags": [] | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
...ony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.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,18 @@ | ||
alias_1 | ||
~~~~~~~ | ||
- Service: `service_1` | ||
- Public: yes | ||
service_1 | ||
~~~~~~~~~ | ||
|
||
- Class: `Full\Qualified\Class1` | ||
- Public: yes | ||
- Synthetic: no | ||
- Lazy: yes | ||
- Shared: yes | ||
- Abstract: yes | ||
- Autowired: no | ||
- Factory Class: `Full\Qualified\FactoryClass` | ||
- Factory Method: `get` |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.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,21 @@ | ||
[39;49m // [39;49mThis service is an alias for the service [32mservice_1[39m | ||
|
||
[33mInformation for Service "[39m[32mservice_1[39m[33m"[39m | ||
[33m===================================[39m | ||
|
||
------------------ ----------------------------- | ||
[32m Option [39m [32m Value [39m | ||
------------------ ----------------------------- | ||
Service ID service_1 | ||
Class Full\Qualified\Class1 | ||
Tags - | ||
Public yes | ||
Synthetic no | ||
Lazy yes | ||
Shared yes | ||
Abstract yes | ||
Autowired no | ||
Autowiring Types - | ||
Factory Class Full\Qualified\FactoryClass | ||
Factory Method get | ||
------------------ ----------------------------- |
5 changes: 5 additions & 0 deletions
5
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_1.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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<alias id="alias_1" service="service_1" public="true"/> | ||
<definition id="service_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"/> | ||
</definition> |
41 changes: 41 additions & 0 deletions
41
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.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,41 @@ | ||
[ | ||
{ | ||
"service": "service_2", | ||
"public": false | ||
}, | ||
{ | ||
"class": "Full\\Qualified\\Class2", | ||
"public": false, | ||
"synthetic": true, | ||
"lazy": false, | ||
"shared": true, | ||
"abstract": false, | ||
"autowire": false, | ||
"autowiring_types": [], | ||
"file": "\/path\/to\/file", | ||
"factory_service": "factory.service", | ||
"factory_method": "get", | ||
"calls": [ | ||
"setMailer" | ||
], | ||
"tags": [ | ||
{ | ||
"name": "tag1", | ||
"parameters": { | ||
"attr1": "val1", | ||
"attr2": "val2" | ||
} | ||
}, | ||
{ | ||
"name": "tag1", | ||
"parameters": { | ||
"attr3": "val3" | ||
} | ||
}, | ||
{ | ||
"name": "tag2", | ||
"parameters": [] | ||
} | ||
] | ||
} | ||
] |
26 changes: 26 additions & 0 deletions
26
...ony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/alias_with_definition_2.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,26 @@ | ||
alias_2 | ||
~~~~~~~ | ||
- Service: `service_2` | ||
- Public: no | ||
service_2 | ||
~~~~~~~~~ | ||
|
||
- Class: `Full\Qualified\Class2` | ||
- Public: no | ||
- Synthetic: yes | ||
- Lazy: no | ||
- Shared: yes | ||
- Abstract: no | ||
- Autowired: no | ||
- File: `/path/to/file` | ||
- Factory Service: `factory.service` | ||
- Factory Method: `get` | ||
- Call: `setMailer` | ||
- Tag: `tag1` | ||
- Attr1: val1 | ||
- Attr2: val2 | ||
- Tag: `tag1` | ||
- Attr3: val3 | ||
- Tag: `tag2` |
Oops, something went wrong.