Constructor.
@api
RouteCollection $routes A RouteCollection instance:
RequestContext $context The context:
LoggerInterface|null $logger A logger instance:
Overrides UrlGenerator::__construct
public function __construct(RouteProviderInterface $provider, LoggerInterface $logger = null) {
$this->provider = $provider;
$this->logger = $logger;
}