Skip to content

Commit 61a305b

Browse files
Merge branch '2.8' into 3.0
* 2.8: Fix merge [Process] Fix running tests on HHVM>=3.8 [Form] Improved performance of ChoiceType and its subtypes Removed an object as route generator argument Conflicts: src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php src/Symfony/Bundle/FrameworkBundle/Resources/config/form.xml
2 parents 9856657 + bae43a5 commit 61a305b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Resources/config/form.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
<!-- CoreExtension -->
4949
<service id="form.property_accessor" alias="property_accessor" public="false" />
5050

51+
<service id="form.choice_list_factory.default" class="Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory" public="false"/>
52+
53+
<service id="form.choice_list_factory.property_access" class="Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator" public="false">
54+
<argument type="service" id="form.choice_list_factory.default"/>
55+
<argument type="service" id="form.property_accessor"/>
56+
</service>
57+
58+
<service id="form.choice_list_factory.cached" class="Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator" public="false">
59+
<argument type="service" id="form.choice_list_factory.property_access"/>
60+
</service>
61+
62+
<service id="form.choice_list_factory" alias="form.choice_list_factory.cached" public="false"/>
63+
5164
<service id="form.type.form" class="Symfony\Component\Form\Extension\Core\Type\FormType">
5265
<argument type="service" id="form.property_accessor" />
5366
<tag name="form.type" />
@@ -60,6 +73,7 @@
6073
</service>
6174
<service id="form.type.choice" class="Symfony\Component\Form\Extension\Core\Type\ChoiceType">
6275
<tag name="form.type" />
76+
<argument type="service" id="form.choice_list_factory"/>
6377
</service>
6478
<service id="form.type.collection" class="Symfony\Component\Form\Extension\Core\Type\CollectionType">
6579
<tag name="form.type" />

0 commit comments

Comments
 (0)