You are here

public function UrlGenerator::__construct in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::__construct()
  2. 8.0 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::__construct()
Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::__construct()

Constructor.

Parameters

RouteCollection $routes A RouteCollection instance:

RequestContext $context The context:

LoggerInterface|null $logger A logger instance:

1 method overrides UrlGenerator::__construct()
ProviderBasedGenerator::__construct in vendor/symfony-cmf/routing/ProviderBasedGenerator.php

File

vendor/symfony/routing/Generator/UrlGenerator.php, line 85

Class

UrlGenerator
UrlGenerator can generate a URL or a path for any route in the RouteCollection based on the passed parameters.

Namespace

Symfony\Component\Routing\Generator

Code

public function __construct(RouteCollection $routes, RequestContext $context, LoggerInterface $logger = null) {
  $this->routes = $routes;
  $this->context = $context;
  $this->logger = $logger;
}