i think you can use the base registry class from doctrine commons, that would be good enough.