You are here

public function CompiledRoute::__construct in Zircon Profile 8

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

Constructor.

Parameters

string $staticPrefix The static prefix of the compiled route:

string $regex The regular expression to use to match this route:

array $tokens An array of tokens to use to generate URL for this route:

array $pathVariables An array of path variables:

string|null $hostRegex Host regex:

array $hostTokens Host tokens:

array $hostVariables An array of host variables:

array $variables An array of variables (variables defined in the path and in the host patterns):

1 call to CompiledRoute::__construct()
CompiledRoute::__construct in core/lib/Drupal/Core/Routing/CompiledRoute.php
Constructs a new compiled route object.
1 method overrides CompiledRoute::__construct()
CompiledRoute::__construct in core/lib/Drupal/Core/Routing/CompiledRoute.php
Constructs a new compiled route object.

File

vendor/symfony/routing/CompiledRoute.php, line 42

Class

CompiledRoute
CompiledRoutes are returned by the RouteCompiler class.

Namespace

Symfony\Component\Routing

Code

public function __construct($staticPrefix, $regex, array $tokens, array $pathVariables, $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array()) {
  $this->staticPrefix = (string) $staticPrefix;
  $this->regex = $regex;
  $this->tokens = $tokens;
  $this->pathVariables = $pathVariables;
  $this->hostRegex = $hostRegex;
  $this->hostTokens = $hostTokens;
  $this->hostVariables = $hostVariables;
  $this->variables = $variables;
}