We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efd7395 commit de71e77Copy full SHA for de71e77
reference/constraints/Callback.rst
@@ -182,7 +182,9 @@ process. Each method can be one of the following formats:
182
public static function loadValidatorMetadata(ClassMetadata $metadata)
183
{
184
$metadata->addConstraint(new Callback(array(
185
- 'methods' => array('isAuthorValid'),
+ 'methods' => array(
186
+ array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'),
187
+ ),
188
)));
189
}
190
0 commit comments