Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FrameworkBundle] remove usage of deprecated Definition::setFactoryCl…
…ass(), Definition::setFactoryService() and Definition::setFactoryMethod() methods.
- Loading branch information
Hugo Hamon
committed
Jan 16, 2015
1 parent
da9d88d
commit fbcc574
Showing
43 changed files
with
497 additions
and
116 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
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
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
2 changes: 1 addition & 1 deletion
2
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definition class="Full\Qualified\Class1" scope="container" public="true" synthetic="false" lazy="true" synchronized="true" abstract="true" file=""> | ||
<definition class="Full\Qualified\Class1" scope="container" public="true" synthetic="false" lazy="true" synchronized="false" abstract="true" file=""> | ||
<factory class="Full\Qualified\FactoryClass" method="get"/> | ||
</definition> |
15 changes: 15 additions & 0 deletions
15
...e/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,15 @@ | ||
{ | ||
"class": "Full\\Qualified\\Class1", | ||
"scope": "container", | ||
"public": true, | ||
"synthetic": false, | ||
"lazy": true, | ||
"synchronized": true, | ||
"abstract": true, | ||
"file": null, | ||
"factory_class": "Full\\Qualified\\FactoryClass", | ||
"factory_method": "get", | ||
"tags": [ | ||
|
||
] | ||
} |
9 changes: 9 additions & 0 deletions
9
...orkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,9 @@ | ||
- Class: `Full\Qualified\Class1` | ||
- Scope: `container` | ||
- Public: yes | ||
- Synthetic: no | ||
- Lazy: yes | ||
- Synchronized: yes | ||
- Abstract: yes | ||
- Factory Class: `Full\Qualified\FactoryClass` | ||
- Factory Method: `get` |
11 changes: 11 additions & 0 deletions
11
...le/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,11 @@ | ||
<comment>Service Id</comment> - | ||
<comment>Class</comment> Full\Qualified\Class1 | ||
<comment>Tags</comment> - | ||
<comment>Scope</comment> container | ||
<comment>Public</comment> yes | ||
<comment>Synthetic</comment> no | ||
<comment>Lazy</comment> yes | ||
<comment>Synchronized</comment> yes | ||
<comment>Abstract</comment> yes | ||
<comment>Factory Class</comment> Full\Qualified\FactoryClass | ||
<comment>Factory Method</comment> get |
2 changes: 2 additions & 0 deletions
2
...le/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definition class="Full\Qualified\Class1" factory-class="Full\Qualified\FactoryClass" factory-method="get" scope="container" public="true" synthetic="false" lazy="true" synchronized="true" abstract="true" file=""/> |
33 changes: 33 additions & 0 deletions
33
...e/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,33 @@ | ||
{ | ||
"class": "Full\\Qualified\\Class2", | ||
"scope": "container", | ||
"public": false, | ||
"synthetic": true, | ||
"lazy": false, | ||
"synchronized": false, | ||
"abstract": false, | ||
"file": "\/path\/to\/file", | ||
"factory_service": "factory.service", | ||
"factory_method": "get", | ||
"tags": [ | ||
{ | ||
"name": "tag1", | ||
"parameters": { | ||
"attr1": "val1", | ||
"attr2": "val2" | ||
} | ||
}, | ||
{ | ||
"name": "tag1", | ||
"parameters": { | ||
"attr3": "val3" | ||
} | ||
}, | ||
{ | ||
"name": "tag2", | ||
"parameters": [ | ||
|
||
] | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...orkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_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,16 @@ | ||
- Class: `Full\Qualified\Class2` | ||
- Scope: `container` | ||
- Public: no | ||
- Synthetic: yes | ||
- Lazy: no | ||
- Synchronized: no | ||
- Abstract: no | ||
- File: `/path/to/file` | ||
- Factory Service: `factory.service` | ||
- Factory Method: `get` | ||
- Tag: `tag1` | ||
- Attr1: val1 | ||
- Attr2: val2 | ||
- Tag: `tag1` | ||
- Attr3: val3 | ||
- Tag: `tag2` |
15 changes: 15 additions & 0 deletions
15
...le/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_definition_2.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,15 @@ | ||
<comment>Service Id</comment> - | ||
<comment>Class</comment> Full\Qualified\Class2 | ||
<comment>Tags</comment> | ||
- tag1 (<info>attr1</info>: val1, <info>attr2</info>: val2) | ||
- tag1 (<info>attr3</info>: val3) | ||
- tag2 () | ||
<comment>Scope</comment> container | ||
<comment>Public</comment> no | ||
<comment>Synthetic</comment> yes | ||
<comment>Lazy</comment> no | ||
<comment>Synchronized</comment> no | ||
<comment>Abstract</comment> no | ||
<comment>Required File</comment> /path/to/file | ||
<comment>Factory Service</comment> factory.service | ||
<comment>Factory Method</comment> get |
13 changes: 13 additions & 0 deletions
13
...le/FrameworkBundle/Tests/Fixtures/Descriptor/legacy_synchronized_service_definition_2.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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definition class="Full\Qualified\Class2" factory-service="factory.service" factory-method="get" scope="container" public="false" synthetic="true" lazy="false" synchronized="false" abstract="false" file="/path/to/file"> | ||
<tags> | ||
<tag name="tag1"> | ||
<parameter name="attr1">val1</parameter> | ||
<parameter name="attr2">val2</parameter> | ||
</tag> | ||
<tag name="tag1"> | ||
<parameter name="attr3">val3</parameter> | ||
</tag> | ||
<tag name="tag2"/> | ||
</tags> | ||
</definition> |
Oops, something went wrong.