From 47ced29c9acd629be37c0a91ee66f25d993f3861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Plepl=C3=A9?= Date: Thu, 15 Aug 2013 07:44:30 -0700 Subject: [PATCH] =?UTF-8?q?[doc]=C2=A0Add=20'Default'=20validation=20group?= =?UTF-8?q?=20for=20user=20validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Resources/doc/2-integration-with-fosuserbundle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/2-integration-with-fosuserbundle.md b/Resources/doc/2-integration-with-fosuserbundle.md index c5b7821..0f35017 100644 --- a/Resources/doc/2-integration-with-fosuserbundle.md +++ b/Resources/doc/2-integration-with-fosuserbundle.md @@ -79,7 +79,7 @@ to the provider id in the "provider" section in ```config.yml```: // TODO use http://developers.facebook.com/docs/api/realtime $user->setFBData($fbdata); - if (count($this->validator->validate($user, 'Facebook'))) { + if (count($this->validator->validate($user, ['Default', 'Facebook']))) { // TODO: the user was found obviously, but doesnt match our expectations, do something smart throw new UsernameNotFoundException('The facebook user could not be stored'); }