[DependencyInjection] added a simple way to replace a service by keeping a reference to the old one