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

Commit0849175

Browse files
committed
Merge pull request#2759 from vjnrv/2.2-static-callback-fix
[Reference][Constraints] Added missing class to static callback example in PHP
2 parents26cf7c7 +de71e77 commit0849175

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
@@ -184,7 +184,9 @@ process. Each method can be one of the following formats:
184184
public static function loadValidatorMetadata(ClassMetadata $metadata)
185185
{
186186
$metadata->addConstraint(new Callback(array(
187-
'methods' => array('isAuthorValid'),
187+
'methods' => array(
188+
array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'),
189+
),
188190
)));
189191
}
190192
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp