Symfony\Component\Routing\CompiledRoute::__construct
Constructor.
Signature
public function __construct(string
$staticPrefix,
[string
$regex = null,
[array
$tokens = null,
[array
$pathVariables = null,
[string|null
$hostRegex = null,
array
$hostTokens,
array
$hostVariables,
array
$variables]]]] )
Parameters
$staticPrefix
—
string
- The static prefix of the compiled route
$regex
—
string
- The regular expression to use to match this route
$tokens
—
array
- An array of tokens to use to generate URL for this route
$pathVariables
—
array
- An array of path variables
$hostRegex
—
object
- Host regex
$hostTokens
—
array
- Host tokens
$hostVariables
—
array
- An array of host variables
$variables
—
array
- An array of variables (variables defined in the path and in the host patterns)