@@ -91,79 +91,79 @@ public function guessTypeForConstraint(Constraint $constraint)
91
91
case 'Symfony\Component\Validator\Constraints\Type ' :
92
92
switch ($ constraint ->type ) {
93
93
case 'array ' :
94
- return new TypeGuess ('collection ' , array (), Guess::MEDIUM_CONFIDENCE );
94
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CollectionType ' , array (), Guess::MEDIUM_CONFIDENCE );
95
95
case 'boolean ' :
96
96
case 'bool ' :
97
- return new TypeGuess ('checkbox ' , array (), Guess::MEDIUM_CONFIDENCE );
97
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CheckboxType ' , array (), Guess::MEDIUM_CONFIDENCE );
98
98
99
99
case 'double ' :
100
100
case 'float ' :
101
101
case 'numeric ' :
102
102
case 'real ' :
103
- return new TypeGuess ('number ' , array (), Guess::MEDIUM_CONFIDENCE );
103
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\NumberType ' , array (), Guess::MEDIUM_CONFIDENCE );
104
104
105
105
case 'integer ' :
106
106
case 'int ' :
107
107
case 'long ' :
108
- return new TypeGuess ('integer ' , array (), Guess::MEDIUM_CONFIDENCE );
108
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\IntegerType ' , array (), Guess::MEDIUM_CONFIDENCE );
109
109
110
110
case '\DateTime ' :
111
- return new TypeGuess ('date ' , array (), Guess::MEDIUM_CONFIDENCE );
111
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\DateType ' , array (), Guess::MEDIUM_CONFIDENCE );
112
112
113
113
case 'string ' :
114
- return new TypeGuess ('text ' , array (), Guess::LOW_CONFIDENCE );
114
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\TextType ' , array (), Guess::LOW_CONFIDENCE );
115
115
}
116
116
break ;
117
117
118
118
case 'Symfony\Component\Validator\Constraints\Country ' :
119
- return new TypeGuess ('country ' , array (), Guess::HIGH_CONFIDENCE );
119
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CountryType ' , array (), Guess::HIGH_CONFIDENCE );
120
120
121
121
case 'Symfony\Component\Validator\Constraints\Currency ' :
122
- return new TypeGuess ('currency ' , array (), Guess::HIGH_CONFIDENCE );
122
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CurrencyType ' , array (), Guess::HIGH_CONFIDENCE );
123
123
124
124
case 'Symfony\Component\Validator\Constraints\Date ' :
125
- return new TypeGuess ('date ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
125
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\DateType ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
126
126
127
127
case 'Symfony\Component\Validator\Constraints\DateTime ' :
128
- return new TypeGuess ('datetime ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
128
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\DateTimeType ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
129
129
130
130
case 'Symfony\Component\Validator\Constraints\Email ' :
131
- return new TypeGuess ('email ' , array (), Guess::HIGH_CONFIDENCE );
131
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\EmailType ' , array (), Guess::HIGH_CONFIDENCE );
132
132
133
133
case 'Symfony\Component\Validator\Constraints\File ' :
134
134
case 'Symfony\Component\Validator\Constraints\Image ' :
135
- return new TypeGuess ('file ' , array (), Guess::HIGH_CONFIDENCE );
135
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\FileType ' , array (), Guess::HIGH_CONFIDENCE );
136
136
137
137
case 'Symfony\Component\Validator\Constraints\Language ' :
138
- return new TypeGuess ('language ' , array (), Guess::HIGH_CONFIDENCE );
138
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\LanguageType ' , array (), Guess::HIGH_CONFIDENCE );
139
139
140
140
case 'Symfony\Component\Validator\Constraints\Locale ' :
141
- return new TypeGuess ('locale ' , array (), Guess::HIGH_CONFIDENCE );
141
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\LocaleType ' , array (), Guess::HIGH_CONFIDENCE );
142
142
143
143
case 'Symfony\Component\Validator\Constraints\Time ' :
144
- return new TypeGuess ('time ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
144
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\TimeType ' , array ('input ' => 'string ' ), Guess::HIGH_CONFIDENCE );
145
145
146
146
case 'Symfony\Component\Validator\Constraints\Url ' :
147
- return new TypeGuess ('url ' , array (), Guess::HIGH_CONFIDENCE );
147
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\UrlType ' , array (), Guess::HIGH_CONFIDENCE );
148
148
149
149
case 'Symfony\Component\Validator\Constraints\Ip ' :
150
- return new TypeGuess ('text ' , array (), Guess::MEDIUM_CONFIDENCE );
150
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\TextType ' , array (), Guess::MEDIUM_CONFIDENCE );
151
151
152
152
case 'Symfony\Component\Validator\Constraints\Length ' :
153
153
case 'Symfony\Component\Validator\Constraints\Regex ' :
154
- return new TypeGuess ('text ' , array (), Guess::LOW_CONFIDENCE );
154
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\TextType ' , array (), Guess::LOW_CONFIDENCE );
155
155
156
156
case 'Symfony\Component\Validator\Constraints\Range ' :
157
- return new TypeGuess ('number ' , array (), Guess::LOW_CONFIDENCE );
157
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\NumberType ' , array (), Guess::LOW_CONFIDENCE );
158
158
159
159
case 'Symfony\Component\Validator\Constraints\Count ' :
160
- return new TypeGuess ('collection ' , array (), Guess::LOW_CONFIDENCE );
160
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CollectionType ' , array (), Guess::LOW_CONFIDENCE );
161
161
162
162
case 'Symfony\Component\Validator\Constraints\True ' :
163
163
case 'Symfony\Component\Validator\Constraints\False ' :
164
164
case 'Symfony\Component\Validator\Constraints\IsTrue ' :
165
165
case 'Symfony\Component\Validator\Constraints\IsFalse ' :
166
- return new TypeGuess ('checkbox ' , array (), Guess::MEDIUM_CONFIDENCE );
166
+ return new TypeGuess ('Symfony\Component\Form\Extension\Core\Type\CheckboxType ' , array (), Guess::MEDIUM_CONFIDENCE );
167
167
}
168
168
}
169
169
0 commit comments