Changed EntityManager with EntityManagerInterface

Changing the User class dependency can be useful to specify user custom EntityManager override/replace that implements the EntityManagerInterface.