CompiledRoute (Component\Routing)
Symfony\Component\Routing\CompiledRoute
class CompiledRoute implements Serializable
CompiledRoutes are returned by the RouteCompiler class.
Methods
__construct(string $staticPrefix, string $regex, array $tokens, array $pathVariables, string|null $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array()) Constructor. | ||
serialize() {@inheritdoc} | ||
unserialize($serialized) {@inheritdoc} | ||
string | getStaticPrefix() Returns the static prefix. | |
string | getRegex() Returns the regex. | |
string|null | getHostRegex() Returns the host regex. | |
array | getTokens() Returns the tokens. | |
array | getHostTokens() Returns the host tokens. | |
array | getVariables() Returns the variables. | |
array | getPathVariables() Returns the path variables. | |
array | getHostVariables() Returns the host variables. |
Details
public __construct(string $staticPrefix, string $regex, array $tokens, array $pathVariables, string|null $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array())
Constructor.
public serialize()
{@inheritdoc}
public unserialize($serialized)
{@inheritdoc}
public string getStaticPrefix()
Returns the static prefix.
public string getRegex()
Returns the regex.
public string|null getHostRegex()
Returns the host regex.
public array getTokens()
Returns the tokens.
public array getHostTokens()
Returns the host tokens.
public array getVariables()
Returns the variables.
public array getPathVariables()
Returns the path variables.
public array getHostVariables()
Returns the host variables.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Routing/CompiledRoute.html