Add Doctrine EntityManager service via factory.