Added FOSUserBundle compatibility