public function updateUserResourceLogin(UserInterface $user, $field, $login)
 {
     switch ($field) {
         case 'vkontakte':
             $user->setVkLogin($login);
             break;
         case 'github':
             $user->setGithubLogin($login);
             break;
         case 'facebook':
             $user->setFbLogin($login);
             break;
         case 'google':
             $user->setGoogleLogin($login);
             break;
         default:
             break;
     }
     return $user;
 }