8000 [FrameworkBundle] Deprecated form types as services · symfony/symfony@10e816b · GitHub
[go: up one dir, main page]

Skip to content

Commit 10e816b

Browse files
committed
[FrameworkBundle] Deprecated form types as services
1 parent 2946932 commit 10e816b

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* Added `Controller::json` to simplify creating JSON responses when using the Serializer component
88
* Deprecated absolute template paths support in the template name parser
9+
* Deprecated services for core form types, form type extensions and form guessers
910

1011
3.0.0
1112
-----

src/Symfony/Bundle/FrameworkBundle/Resources/config/form.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,97 +64,128 @@
6464
<service id="form.type.form" class="Symfony\Component\Form\Extension\Core\Type\FormType">
6565
<argument type="service" id="form.property_accessor" />
6666
<tag name="form.type" />
67+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
6768
</service>
6869
<service id="form.type.birthday" class="Symfony\Component\Form\Extension\Core\Type\BirthdayType">
6970
<tag name="form.type" />
71+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
7072
</service>
7173
<service id="form.type.checkbox" class="Symfony\Component\Form\Extension\Core\Type\CheckboxType">
7274
<tag name="form.type" />
75+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
7376
</service>
7477
<service id="form.type.choice" class="Symfony\Component\Form\Extension\Core\Type\ChoiceType">
7578
<tag name="form.type" />
79+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
7680
<argument type="service" id="form.choice_list_factory"/>
7781
</service>
7882
<service id="form.type.collection" class="Symfony\Component\Form\Extension\Core\Type\CollectionType">
7983
<tag name="form.type" />
84+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8085
</service>
8186
<service id="form.type.country" class="Symfony\Component\Form\Extension\Core\Type\CountryType">
8287
<tag name="form.type" />
88+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8389
</service>
8490
<service id="form.type.date" class="Symfony\Component\Form\Extension\Core\Type\DateType">
8591
<tag name="form.type" />
92+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8693
</service>
8794
<service id="form.type.datetime" class="Symfony\Component\Form\Extension\Core\Type\DateTimeType">
8895
<tag name="form.type" />
96+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8997
</service>
9098
<service id="form.type.email" class="Symfony\Component\Form\Extension\Core\Type\EmailType">
9199
<tag name="form.type" />
100+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
92101
</service>
93102
<service id="form.type.file" class="Symfony\Component\Form\Extension\Core\Type\FileType">
94103
<tag name="form.type" />
104+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
95105
</service>
96106
<service id="form.type.hidden" class="Symfony\Component\Form\Extension\Core\Type\HiddenType">
97107
<tag name="form.type" />
108+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
98109
</service>
99110
<service id="form.type.integer" class="Symfony\Component\Form\Extension\Core\Type\IntegerType">
100111
<tag name="form.type" />
112+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
101113
</service>
102114
<service id="form.type.language" class="Symfony\Component\Form\Extension\Core\Type\LanguageType">
103115
<tag name="form.type" />
116+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
104117
</service>
105118
<service id="form.type.locale" class="Symfony\Component\Form\Extension\Core\Type\LocaleType">
106119
<tag name="form.type" />
120+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
107121
</service>
108122
<service id="form.type.money" class="Symfony\Component\Form\Extension\Core\Type\MoneyType">
109123
<tag name="form.type" />
124+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
110125
</service>
111126
<service id="form.type.number" class="Symfony\Component\Form\Extension\Core\Type\NumberType">
112127
<tag name="form.type" />
128+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
113129
</service>
114130
<service id="form.type.password" class="Symfony\Component\Form\Extension\Core\Type\PasswordType">
115131
<tag name="form.type" />
132+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
116133
</service>
117134
<service id="form.type.percent" class="Symfony\Component\Form\Extension\Core\Type\PercentType">
118135
<tag name="form.type" />
136+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
119137
</service>
120138
<service id="form.type.radio" class="Symfony\Component\Form\Extension\Core\Type\RadioType">
121139
<tag name="form.type" />
140+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
122141
</service>
123142
<service id="form.type.range" class="Symfony\Component\Form\Extension\Core\Type\RangeType">
124143
<tag name="form.type" />
144+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
125145
</service>
126146
<service id="form.type.repeated" class="Symfony\Component\Form\Extension\Core\Type\RepeatedType">
127147
<tag name="form.type" />
148+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
128149
</service>
129150
<service id="form.type.search" class="Symfony\Component\Form\Extension\Core\Type\SearchType">
130151
<tag name="form.type" />
152+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
131153
</service>
132154
<service id="form.type.textarea" class="Symfony\Component\Form\Extension\Core\Type\TextareaType">
133155
<tag name="form.type" />
156+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
134157
</service>
135158
<service id="form.type.text" class="Symfony\Component\Form\Extension\Core\Type\TextType">
136159
<tag name="form.type" />
160+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
137161
</service>
138162
<service id="form.type.time" class="Symfony\Component\Form\Extension\Core\Type\TimeType">
139163
<tag name="form.type" />
164+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
140165
</service>
141166
<service id="form.type.timezone" class="Symfony\Component\Form\Extension\Core\Type\TimezoneType">
142167
<tag name="form.type" />
168+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
143169
</service>
144170
<service id="form.type.url" class="Symfony\Component\Form\Extension\Core\Type\UrlType">
145171
<tag name="form.type" />
172+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
146173
</service>
147174
<service id="form.type.button" class="Symfony\Component\Form\Extension\Core\Type\ButtonType">
148175
<tag name="form.type" />
176+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
149177
</service>
150178
<service id="form.type.submit" class="Symfony\Component\Form\Extension\Core\Type\SubmitType">
151179
<tag name="form.type" />
180+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
152181
</service>
153182
<service id="form.type.reset" class="Symfony\Component\Form\Extension\Core\Type\ResetType">
154183
<tag name="form.type" />
184+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
155185
</service>
156186
<service id="form.type.currency" class="Symfony\Component\Form\Extension\Core\Type\CurrencyType">
157187
<tag name="form.type" />
188+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
158189
</service>
159190

160191
<!-- FormTypeHttpFoundationExtension -->
@@ -174,14 +205,16 @@
174205

175206
<!-- FormTypeValidatorExtension -->
176207
<service id="form.type_extension.form.validator" class="Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension">
177-
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
178208
<argument type="service" id="validator" />
209+
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
179210
</service>
180211
<service id="form.type_extension.repeated.validator" class="Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension">
181212
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\RepeatedType" />
213+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
182214
</service>
183215
<service id="form.type_extension.submit.validator" class="Symfony\Component\Form\Extension\Validator\Type\SubmitTypeValidatorExtension">
184216
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\SubmitType" />
217+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
185218
</service>
186219
</services>
187220
</container>

src/Symfony/Bundle/FrameworkBundle/Resources/config/form_debug.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<service id="form.type_extension.form.data_collector" class="Symfony\Component\Form\Extension\DataCollector\Type\DataCollectorTypeExtension">
1717
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\FormType" />
1818
<argument type="service" id="data_collector.form" />
19+
<deprecated>"The \"%service_id%\" service is deprecated since Symfony 3.1 and will be removed in 4.0."</deprecated>
1920
</service>
2021

2122
<!-- DataCollector -->

0 commit comments

Comments
 (0)
0