Fix for FOS UserBundle ver 2.*

FIx so we could run SonataUserBundle with FOS UserBundle versio 2.*