[Security] [Doctrine] Fixed compliance with symfony coding standards

 * Removed unneeded `use` statements.
 * Fixed error message to reference the new interface
 * Changed `refreshUser` to compare to the new interface