From de71e77e6b076d40721cbc04d36764c784ce2da4 Mon Sep 17 00:00:00 2001 From: Pedro Junior Date: Sat, 22 Jun 2013 15:30:57 -0300 Subject: [PATCH] Added missing class to static callback example in PHP Signed-off-by: Pedro Junior --- reference/constraints/Callback.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 93539cb7eb2..030cfe73c3c 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -182,7 +182,9 @@ process. Each method can be one of the following formats: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addConstraint(new Callback(array( - 'methods' => array('isAuthorValid'), + 'methods' => array( + array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'), + ), ))); } }