Updated ServiceProvider to work with Doctrine\ORM\EntityManagerInterface