OAuth/UserProvider.php
protected function createUser( UserResponseInterface $response )
    {
        $user = $this->userManager->createUser();
        $user->setUsername( $this->createUniqueUsername( $this->getRealName( $response )));
        $user->setEmail( $this->getEmail( $response ) );
        $user->setPassword( '' );
        $user->setEnabled( true );
        $this->userManager->updateUser( $user );
        $this->createIdentity( $user, $response );
        return $user;
    }
protected function createUser( UserResponseInterface $response )
    {
        $user = $this->userManager->createUser();
        $user->setUsername( $this->createUniqueUsername( $this->getRealName( $response )));
        $user->setEmail( $this->getEmail( $response ) );
        $user->setPassword( '' );
        $user->setEnabled( true );
        $this->userManager->updateUser( $user );
        $this->createIdentity( $user, $response );
        return $user;
    }
protected function createUser ( UserResponseInterface $ response ) { $ user = $ this -> userManager -> createUser ( ) ; $ user -> setUsername ( $ this -> createUniqueUsername ( $ this -> getRealName ( $ response ) ) ) ; $ user -> setEmail ( $ this -> getEmail ( $ response ) ) ; $ user -> setPassword ( '' ) ; $ user -> setEnabled ( true ) ; $ this -> userManager -> updateUser ( $ user ) ; $ this -> createIdentity ( $ user , $ response ) ; return $ user ; }
Creates new User

@param \HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response
@return \Userfriendly\Bundle\SocialUserBundle\Model\User
Creates new User