[Security] [Doctrine] Added BaseUserProviderInterface

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11157 
| License       | MIT
| Doc PR        | 

You can now implement BaseUserProviderInterface without the need of implementing `supportsClass` function.