Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c9f21b

Browse files
committed
bug#50539 [Validator] Remove internal from methods on non-internal interfaces (wouterj)
This PR was merged into the 5.4 branch.Discussion----------[Validator] Remove internal from methods on non-internal interfaces| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -A method cannot be ``@internal`` on a public interface, as a userland class implementing the interface *must* define it. As such, we must follow the BC promise for them.Commits-------21fb6ba [Validator] Remove internal from methods on non-internal interfaces
2 parents79c4bfb +21fb6ba commit6c9f21b

File tree

1 file changed

+9
-36
lines changed

1 file changed

+9
-36
lines changed

‎src/Symfony/Component/Validator/Context/ExecutionContextInterface.php‎

Lines changed: 9 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -123,107 +123,80 @@ public function getValidator();
123123
publicfunctiongetObject();
124124

125125
/**
126-
*Setsthecurrently validated value.
126+
*Warning: Should not be called by user code, to be used bythevalidator engine only.
127127
*
128128
* @param mixed $value The validated value
129129
* @param object|null $object The currently validated object
130130
* @param string $propertyPath The property path to the current value
131-
*
132-
* @internal Used by the validator engine. Should not be called by user
133-
* code.
134131
*/
135132
publicfunctionsetNode($value, ?object$object,MetadataInterface$metadata =null,string$propertyPath);
136133

137134
/**
138-
*Setsthecurrently validated group.
135+
*Warning: Should not be called by user code, to be used bythevalidator engine only.
139136
*
140137
* @param string|null $group The validated group
141-
*
142-
* @internal Used by the validator engine. Should not be called by user
143-
* code.
144138
*/
145139
publicfunctionsetGroup(?string$group);
146140

147141
/**
148-
* Sets the currently validated constraint.
149-
*
150-
* @internal Used by the validator engine. Should not be called by user
151-
* code.
142+
* Warning: Should not be called by user code, to be used by the validator engine only.
152143
*/
153144
publicfunctionsetConstraint(Constraint$constraint);
154145

155146
/**
156-
*Marks an object as validated in a specific validation group.
147+
*Warning: Should not be called by user code, to be used by the validator engine only.
157148
*
158149
* @param string $cacheKey The hash of the object
159150
* @param string $groupHash The group's name or hash, if it is group
160151
* sequence
161-
*
162-
* @internal Used by the validator engine. Should not be called by user
163-
* code.
164152
*/
165153
publicfunctionmarkGroupAsValidated(string$cacheKey,string$groupHash);
166154

167155
/**
168-
*Returns whether an object was validated in a specific validation group.
156+
*Warning: Should not be called by user code, to be used by the validator engine only.
169157
*
170158
* @param string $cacheKey The hash of the object
171159
* @param string $groupHash The group's name or hash, if it is group
172160
* sequence
173161
*
174162
* @return bool
175-
*
176-
* @internal Used by the validator engine. Should not be called by user
177-
* code.
178163
*/
179164
publicfunctionisGroupValidated(string$cacheKey,string$groupHash);
180165

181166
/**
182-
*Marks a constraint as validated for an object.
167+
*Warning: Should not be called by user code, to be used by the validator engine only.
183168
*
184169
* @param string $cacheKey The hash of the object
185170
* @param string $constraintHash The hash of the constraint
186-
*
187-
* @internal Used by the validator engine. Should not be called by user
188-
* code.
189171
*/
190172
publicfunctionmarkConstraintAsValidated(string$cacheKey,string$constraintHash);
191173

192174
/**
193-
*Returns whether a constraint was validated for an object.
175+
*Warning: Should not be called by user code, to be used by the validator engine only.
194176
*
195177
* @param string $cacheKey The hash of the object
196178
* @param string $constraintHash The hash of the constraint
197179
*
198180
* @return bool
199-
*
200-
* @internal Used by the validator engine. Should not be called by user
201-
* code.
202181
*/
203182
publicfunctionisConstraintValidated(string$cacheKey,string$constraintHash);
204183

205184
/**
206-
*Marks that an object was initialized.
185+
*Warning: Should not be called by user code, to be used by the validator engine only.
207186
*
208187
* @param string $cacheKey The hash of the object
209188
*
210-
* @internal Used by the validator engine. Should not be called by user
211-
* code.
212-
*
213189
* @see ObjectInitializerInterface
214190
*/
215191
publicfunctionmarkObjectAsInitialized(string$cacheKey);
216192

217193
/**
218-
*Returns whether an object was initialized.
194+
*Warning: Should not be called by user code, to be used by the validator engine only.
219195
*
220196
* @param string $cacheKey The hash of the object
221197
*
222198
* @return bool
223199
*
224-
* @internal Used by the validator engine. Should not be called by user
225-
* code.
226-
*
227200
* @see ObjectInitializerInterface
228201
*/
229202
publicfunctionisObjectInitialized(string$cacheKey);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp