You are here

public function ProviderBasedGenerator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/ProviderBasedGenerator.php \Symfony\Cmf\Component\Routing\ProviderBasedGenerator::__construct()

Parameters

RouteProviderInterface $provider:

LoggerInterface $logger:

Overrides UrlGenerator::__construct

File

vendor/symfony-cmf/routing/ProviderBasedGenerator.php, line 39

Class

ProviderBasedGenerator
A Generator that uses a RouteProvider rather than a RouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function __construct(RouteProviderInterface $provider, LoggerInterface $logger = null) {
  $this->provider = $provider;
  $this->logger = $logger;
  $this->context = new RequestContext();
}