Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

[doc] Add 'Default' validation group for user validation #280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Resources/doc/2-integration-with-fosuserbundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down