public function UrlGenerator::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::__construct()
- 8 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::__construct()
Same name and namespace in other branches
- 8.0 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\GeneratorCode
public function __construct(RouteCollection $routes, RequestContext $context, LoggerInterface $logger = null) {
$this->routes = $routes;
$this->context = $context;
$this->logger = $logger;
}