Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61ca117

Browse files
committed
[FrameworkBundle] Deprecated form types as services
1 parent 2946932 commit 61ca117

File tree

2 files changed

+30
-28
lines changed

2 files changed

+30
-28
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 without dependencies
910

1011
3.0.0
1112
-----

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

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,95 +66,96 @@
6666
<tag name="form.type" />
6767
</service>
6868
<service id="form.type.birthday" class="Symfony\Component\Form\Extension\Core\Type\BirthdayType">
69-
<tag name="form.type" />
69+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
7070
</service>
7171
<service id="form.type.checkbox" class="Symfony\Component\Form\Extension\Core\Type\CheckboxType">
72-
<tag name="form.type" />
72+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
7373
</service>
7474
<service id="form.type.choice" class="Symfony\Component\Form\Extension\Core\Type\ChoiceType">
7575
<tag name="form.type" />
7676
<argument type="service" id="form.choice_list_factory"/>
7777
</service>
7878
<service id="form.type.collection" class="Symfony\Component\Form\Extension\Core\Type\CollectionType">
79-
<tag name="form.type" />
79+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8080
</service>
8181
<service id="form.type.country" class="Symfony\Component\Form\Extension\Core\Type\CountryType">
82-
<tag name="form.type" />
82+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8383
</service>
8484
<service id="form.type.date" class="Symfony\Component\Form\Extension\Core\Type\DateType">
85-
<tag name="form.type" />
85+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8686
</service>
8787
<service id="form.type.datetime" class="Symfony\Component\Form\Extension\Core\Type\DateTimeType">
88-
<tag name="form.type" />
88+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
8989
</service>
9090
<service id="form.type.email" class="Symfony\Component\Form\Extension\Core\Type\EmailType">
91-
<tag name="form.type" />
91+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
9292
</service>
9393
<service id="form.type.file" class="Symfony\Component\Form\Extension\Core\Type\FileType">
94-
<tag name="form.type" />
94+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
9595
</service>
9696
<service id="form.type.hidden" class="Symfony\Component\Form\Extension\Core\Type\HiddenType">
97-
<tag name="form.type" />
97+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
9898
</service>
9999
<service id="form.type.integer" class="Symfony\Component\Form\Extension\Core\Type\IntegerType">
100-
<tag name="form.type" />
100+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
101101
</service>
102102
<service id="form.type.language" class="Symfony\Component\Form\Extension\Core\Type\LanguageType">
103-
<tag name="form.type" />
103+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
104104
</service>
105105
<service id="form.type.locale" class="Symfony\Component\Form\Extension\Core\Type\LocaleType">
106-
<tag name="form.type" />
106+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
107107
</service>
108108
<service id="form.type.money" class="Symfony\Component\Form\Extension\Core\Type\MoneyType">
109-
<tag name="form.type" />
109+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
110110
</service>
111111
<service id="form.type.number" class="Symfony\Component\Form\Extension\Core\Type\NumberType">
112-
<tag name="form.type" />
112+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
113113
</service>
114114
<service id="form.type.password" class="Symfony\Component\Form\Extension\Core\Type\PasswordType">
115-
<tag name="form.type" />
115+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
116116
</service>
117117
<service id="form.type.percent" class="Symfony\Component\Form\Extension\Core\Type\PercentType">
118-
<tag name="form.type" />
118+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
119119
</service>
120120
<service id="form.type.radio" class="Symfony\Component\Form\Extension\Core\Type\RadioType">
121-
<tag name="form.type" />
121+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
122122
</service>
123123
<service id="form.type.range" class="Symfony\Component\Form\Extension\Core\Type\RangeType">
124-
<tag name="form.type" />
124+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
125125
</service>
126126
<service id="form.type.repeated" class="Symfony\Component\Form\Extension\Core\Type\RepeatedType">
127-
<tag name="form.type" />
127+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
128128
</service>
129129
<service id="form.type.search" class="Symfony\Component\Form\Extension\Core\Type\SearchType">
130-
<tag name="form.type" />
130+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
131131
</service>
132132
<service id="form.type.textarea" class="Symfony\Component\Form\Extension\Core\Type\TextareaType">
133133
<tag name="form.type" />
134+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
134135
</service>
135136
<service id="form.type.text" class="Symfony\Component\Form\Extension\Core\Type\TextType">
136-
<tag name="form.type" />
137+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
137138
</service>
138139
<service id="form.type.time" class="Symfony\Component\Form\Extension\Core\Type\TimeType">
139-
<tag name="form.type" />
140+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
140141
</service>
141142
<service id="form.type.timezone" class="Symfony\Component\Form\Extension\Core\Type\TimezoneType">
142-
<tag name="form.type" />
143+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
143144
</service>
144145
<service id="form.type.url" class="Symfony\Component\Form\Extension\Core\Type\UrlType">
145-
<tag name="form.type" />
146+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
146147
</service>
147148
<service id="form.type.button" class="Symfony\Component\Form\Extension\Core\Type\ButtonType">
148-
<tag name="form.type" />
149+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
149150
</service>
150151
<service id="form.type.submit" class="Symfony\Component\Form\Extension\Core\Type\SubmitType">
151-
<tag name="form.type" />
152+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
152153
</service>
153154
<service id="form.type.reset" class="Symfony\Component\Form\Extension\Core\Type\ResetType">
154-
<tag name="form.type" />
155+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
155156
</service>
156157
<service id="form.type.currency" class="Symfony\Component\Form\Extension\Core\Type\CurrencyType">
157-
<tag name="form.type" />
158+
<deprecated>The "%service_id%" service is deprecated since Symfony 3.1 and will be removed in 4.0.</deprecated>
158159
</service>
159160

160161
<!-- FormTypeHttpFoundationExtension -->

0 commit comments

Comments
 (0)