Fix event_dispatcher replacement in DependencyInjection