swap doctrine registry for object manager for gateway param