From dbfd6352a9cec764023b4dc11673d127c05383c4 Mon Sep 17 00:00:00 2001 From: Pedro Junior Date: Thu, 20 Jun 2013 15:54:50 -0300 Subject: [PATCH] [Reference][Constraints] Added missing class to static callback example in PHP --- 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 892685fc90e..324dd53d6bc 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'), + ), ))); } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy