Adding the event publisher to the domain repository