Changed EntityManager with EntityManagerInterface

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