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

Commitde71e77

Browse files
committed
Added missing class to static callback example in PHP
Signed-off-by: Pedro Junior <v.ju.ni.or.v@gmail.com>
1 parentefd7395 commitde71e77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎reference/constraints/Callback.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ process. Each method can be one of the following formats:
182182
public static function loadValidatorMetadata(ClassMetadata $metadata)
183183
{
184184
$metadata->addConstraint(new Callback(array(
185-
'methods' => array('isAuthorValid'),
185+
'methods' => array(
186+
array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'),
187+
),
186188
)));
187189
}
188190
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp