form.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" ?>
  2. <container xmlns="http://symfony.com/schema/dic/services"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
  5. <parameters>
  6. <parameter key="form.resolved_type_factory.class">Symfony\Component\Form\ResolvedFormTypeFactory</parameter>
  7. <parameter key="form.registry.class">Symfony\Component\Form\FormRegistry</parameter>
  8. <parameter key="form.factory.class">Symfony\Component\Form\FormFactory</parameter>
  9. <parameter key="form.extension.class">Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension</parameter>
  10. <parameter key="form.type_guesser.validator.class">Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser</parameter>
  11. <parameter key="form.type_extension.form.request_handler.class">Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler</parameter>
  12. </parameters>
  13. <services>
  14. <!-- ResolvedFormTypeFactory -->
  15. <service id="form.resolved_type_factory" class="%form.resolved_type_factory.class%" />
  16. <!-- FormRegistry -->
  17. <service id="form.registry" class="%form.registry.class%">
  18. <argument type="collection">
  19. <!--
  20. We don't need to be able to add more extensions.
  21. * more types can be registered with the form.type tag
  22. * more type extensions can be registered with the form.type_extension tag
  23. * more type_guessers can be registered with the form.type_guesser tag
  24. -->
  25. <argument type="service" id="form.extension" />
  26. </argument>
  27. <argument type="service" id="form.resolved_type_factory" />
  28. </service>
  29. <!-- FormFactory -->
  30. <service id="form.factory" class="%form.factory.class%">
  31. <argument type="service" id="form.registry" />
  32. <argument type="service" id="form.resolved_type_factory" />
  33. </service>
  34. <!-- DependencyInjectionExtension -->
  35. <service id="form.extension" class="%form.extension.class%" public="false">
  36. <argument type="service" id="service_container" />
  37. <!-- All services with tag "form.type" are inserted here by FormPass -->
  38. <argument type="collection" />
  39. <!-- All services with tag "form.type_extension" are inserted here by FormPass -->
  40. <argument type="collection" />
  41. <!-- All services with tag "form.type_guesser" are inserted here by FormPass -->
  42. <argument type="collection" />
  43. </service>
  44. <!-- ValidatorTypeGuesser -->
  45. <service id="form.type_guesser.validator" class="%form.type_guesser.validator.class%">
  46. <tag name="form.type_guesser" />
  47. <argument type="service" id="validator.mapping.class_metadata_factory" />
  48. </service>
  49. <!-- CoreExtension -->
  50. <service id="form.property_accessor" alias="property_accessor" public="false" />
  51. <service id="form.choice_list_factory.default" class="Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory" public="false"/>
  52. <service id="form.choice_list_factory.property_access" class="Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator" public="false">
  53. <argument type="service" id="form.choice_list_factory.default"/>
  54. <argument type="service" id="form.property_accessor"/>
  55. </service>
  56. <service id="form.choice_list_factory.cached" class="Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator" public="false">
  57. <argument type="service" id="form.choice_list_factory.property_access"/>
  58. </service>
  59. <service id="form.choice_list_factory" alias="form.choice_list_factory.cached" public="false"/>
  60. <service id="form.type.form" class="Symfony\Component\Form\Extension\Core\Type\FormType">
  61. <argument type="service" id="form.property_accessor" />
  62. <tag name="form.type" alias="form" />
  63. </service>
  64. <service id="form.type.birthday" class="Symfony\Component\Form\Extension\Core\Type\BirthdayType">
  65. <tag name="form.type" alias="birthday" />
  66. </service>
  67. <service id="form.type.checkbox" class="Symfony\Component\Form\Extension\Core\Type\CheckboxType">
  68. <tag name="form.type" alias="checkbox" />
  69. </service>
  70. <service id="form.type.choice" class="Symfony\Component\Form\Extension\Core\Type\ChoiceType">
  71. <tag name="form.type" alias="choice" />
  72. <argument type="service" id="form.choice_list_factory"/>
  73. </service>
  74. <service id="form.type.collection" class="Symfony\Component\Form\Extension\Core\Type\CollectionType">
  75. <tag name="form.type" alias="collection" />
  76. </service>
  77. <service id="form.type.country" class="Symfony\Component\Form\Extension\Core\Type\CountryType">
  78. <tag name="form.type" alias="country" />
  79. </service>
  80. <service id="form.type.date" class="Symfony\Component\Form\Extension\Core\Type\DateType">
  81. <tag name="form.type" alias="date" />
  82. </service>
  83. <service id="form.type.datetime" class="Symfony\Component\Form\Extension\Core\Type\DateTimeType">
  84. <tag name="form.type" alias="datetime" />
  85. </service>
  86. <service id="form.type.email" class="Symfony\Component\Form\Extension\Core\Type\EmailType">
  87. <tag name="form.type" alias="email" />
  88. </service>
  89. <service id="form.type.file" class="Symfony\Component\Form\Extension\Core\Type\FileType">
  90. <tag name="form.type" alias="file" />
  91. </service>
  92. <service id="form.type.hidden" class="Symfony\Component\Form\Extension\Core\Type\HiddenType">
  93. <tag name="form.type" alias="hidden" />
  94. </service>
  95. <service id="form.type.integer" class="Symfony\Component\Form\Extension\Core\Type\IntegerType">
  96. <tag name="form.type" alias="integer" />
  97. </service>
  98. <service id="form.type.language" class="Symfony\Component\Form\Extension\Core\Type\LanguageType">
  99. <tag name="form.type" alias="language" />
  100. </service>
  101. <service id="form.type.locale" class="Symfony\Component\Form\Extension\Core\Type\LocaleType">
  102. <tag name="form.type" alias="locale" />
  103. </service>
  104. <service id="form.type.money" class="Symfony\Component\Form\Extension\Core\Type\MoneyType">
  105. <tag name="form.type" alias="money" />
  106. </service>
  107. <service id="form.type.number" class="Symfony\Component\Form\Extension\Core\Type\NumberType">
  108. <tag name="form.type" alias="number" />
  109. </service>
  110. <service id="form.type.password" class="Symfony\Component\Form\Extension\Core\Type\PasswordType">
  111. <tag name="form.type" alias="password" />
  112. </service>
  113. <service id="form.type.percent" class="Symfony\Component\Form\Extension\Core\Type\PercentType">
  114. <tag name="form.type" alias="percent" />
  115. </service>
  116. <service id="form.type.radio" class="Symfony\Component\Form\Extension\Core\Type\RadioType">
  117. <tag name="form.type" alias="radio" />
  118. </service>
  119. <service id="form.type.range" class="Symfony\Component\Form\Extension\Core\Type\RangeType">
  120. <tag name="form.type" alias="range" />
  121. </service>
  122. <service id="form.type.repeated" class="Symfony\Component\Form\Extension\Core\Type\RepeatedType">
  123. <tag name="form.type" alias="repeated" />
  124. </service>
  125. <service id="form.type.search" class="Symfony\Component\Form\Extension\Core\Type\SearchType">
  126. <tag name="form.type" alias="search" />
  127. </service>
  128. <service id="form.type.textarea" class="Symfony\Component\Form\Extension\Core\Type\TextareaType">
  129. <tag name="form.type" alias="textarea" />
  130. </service>
  131. <service id="form.type.text" class="Symfony\Component\Form\Extension\Core\Type\TextType">
  132. <tag name="form.type" alias="text" />
  133. </service>
  134. <service id="form.type.time" class="Symfony\Component\Form\Extension\Core\Type\TimeType">
  135. <tag name="form.type" alias="time" />
  136. </service>
  137. <service id="form.type.timezone" class="Symfony\Component\Form\Extension\Core\Type\TimezoneType">
  138. <tag name="form.type" alias="timezone" />
  139. </service>
  140. <service id="form.type.url" class="Symfony\Component\Form\Extension\Core\Type\UrlType">
  141. <tag name="form.type" alias="url" />
  142. </service>
  143. <service id="form.type.button" class="Symfony\Component\Form\Extension\Core\Type\ButtonType">
  144. <tag name="form.type" alias="button" />
  145. </service>
  146. <service id="form.type.submit" class="Symfony\Component\Form\Extension\Core\Type\SubmitType">
  147. <tag name="form.type" alias="submit" />
  148. </service>
  149. <service id="form.type.reset" class="Symfony\Component\Form\Extension\Core\Type\ResetType">
  150. <tag name="form.type" alias="reset" />
  151. </service>
  152. <service id="form.type.currency" class="Symfony\Component\Form\Extension\Core\Type\CurrencyType">
  153. <tag name="form.type" alias="currency" />
  154. </service>
  155. <service id="form.type_extension.form.transformation_failure_handling" class="Symfony\Component\Form\Extension\Core\Type\TransformationFailureExtension">
  156. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
  157. <argument type="service" id="translator" on-invalid="ignore" />
  158. </service>
  159. <!-- FormTypeHttpFoundationExtension -->
  160. <service id="form.type_extension.form.http_foundation" class="Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension">
  161. <argument type="service" id="form.type_extension.form.request_handler" />
  162. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
  163. </service>
  164. <!-- HttpFoundationRequestHandler -->
  165. <service id="form.type_extension.form.request_handler" class="%form.type_extension.form.request_handler.class%" public="false">
  166. <argument type="service" id="form.server_params" />
  167. </service>
  168. <service id="form.server_params" class="Symfony\Component\Form\Util\ServerParams" public="false">
  169. <argument type="service" id="request_stack" />
  170. </service>
  171. <!-- FormTypeValidatorExtension -->
  172. <service id="form.type_extension.form.validator" class="Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension">
  173. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
  174. <argument type="service" id="validator" />
  175. </service>
  176. <service id="form.type_extension.repeated.validator" class="Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension">
  177. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\RepeatedType" />
  178. </service>
  179. <service id="form.type_extension.submit.validator" class="Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension">
  180. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\SubmitType" />
  181. </service>
  182. <service id="form.type_extension.upload.validator" class="Symfony\Component\Form\Extension\Validator\Type\UploadValidatorExtension">
  183. <tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
  184. <argument type="service" id="translator"/>
  185. <argument type="string">%validator.translation_domain%</argument>
  186. </service>
  187. </services>
  188. </container>