Replaced RouterInterface with UrlGeneratorInterface for better extendability.