Inject the Router object into the DI container.