come to think about it, this should not be in the interface anyways. its a setup detail, and other implementations might not need any doctrine at all. the rest of your bundle will not need to call this method, its only for DI - and in DI you know the class you are setting up.