Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • CompiledRoute
  • RequestContext
  • Route
  • RouteCollection
  • RouteCollectionBuilder
  • RouteCompiler
  • Router

Interfaces

  • RequestContextAwareInterface
  • RouteCompilerInterface
  • RouterInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class CompiledRoute

CompiledRoutes are returned by the RouteCompiler class.

Symfony\Component\Routing\CompiledRoute implements Serializable
Namespace: Symfony\Component\Routing
Author: Fabien Potencier <fabien@symfony.com>
Located at CompiledRoute.php
Methods summary
public
# __construct( string $staticPrefix, string $regex, array $tokens, array $pathVariables, string|null $hostRegex = null, array $hostTokens = array(), array $hostVariables = array(), array $variables = array() )

Constructor.

Constructor.

Parameters

$staticPrefix
string
$staticPrefix The static prefix of the compiled route
$regex
string
$regex The regular expression to use to match this route
$tokens
array
$tokens An array of tokens to use to generate URL for this route
$pathVariables
array
$pathVariables An array of path variables
$hostRegex
string|null
$hostRegex Host regex
$hostTokens
array
$hostTokens Host tokens
$hostVariables
array
$hostVariables An array of host variables
$variables
array
$variables An array of variables (variables defined in the path and in the host patterns)
public
# serialize( )

Implementation of

Serializable::serialize()
public
# unserialize( mixed $serialized )

Implementation of

Serializable::unserialize()
public string
# getStaticPrefix( )

Returns the static prefix.

Returns the static prefix.

Returns

string
The static prefix
public string
# getRegex( )

Returns the regex.

Returns the regex.

Returns

string
The regex
public string|null
# getHostRegex( )

Returns the host regex.

Returns the host regex.

Returns

string|null
The host regex or null
public array
# getTokens( )

Returns the tokens.

Returns the tokens.

Returns

array
The tokens
public array
# getHostTokens( )

Returns the host tokens.

Returns the host tokens.

Returns

array
The tokens
public array
# getVariables( )

Returns the variables.

Returns the variables.

Returns

array
The variables
public array
# getPathVariables( )

Returns the path variables.

Returns the path variables.

Returns

array
The variables
public array
# getHostVariables( )

Returns the host variables.

Returns the host variables.

Returns

array
The variables
Ratchet API documentation generated by ApiGen 2.8.0