This will not work well with FOSUserBundle 2.0: you will get a deprecation warning when using the core implementation (and nothing require implementing UserProviderInterface when implementing UserManagerInterface  anymore)