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 RouteCompiler

RouteCompiler compiles Route instances to CompiledRoute instances.

Symfony\Component\Routing\RouteCompiler implements Symfony\Component\Routing\RouteCompilerInterface
Namespace: Symfony\Component\Routing
Author: Fabien Potencier <fabien@symfony.com>
Author: Tobias Schultze <http://tobion.de>
Located at RouteCompiler.php
Methods summary
public static Symfony\Component\Routing\CompiledRoute
# compile( Symfony\Component\Routing\Route $route )

Compiles the current route instance.

Compiles the current route instance.

Parameters

$route
Symfony\Component\Routing\Route
$route A Route instance

Returns

Symfony\Component\Routing\CompiledRoute
A CompiledRoute instance

Throws

LogicException
If a variable is referenced more than once
DomainException
If a variable name starts with a digit or if it is too long to be successfully used as a PCRE subpattern.

Implementation of

Symfony\Component\Routing\RouteCompilerInterface::compile()
Constants summary
string REGEX_DELIMITER '#'
#
string SEPARATORS '/,;.:-_~+*=@|'
#

This string defines the characters that are automatically considered separators in front of optional placeholders (with default and no static text following). Such a single separator can be left out together with the optional placeholder from matching and generating URLs.

This string defines the characters that are automatically considered separators in front of optional placeholders (with default and no static text following). Such a single separator can be left out together with the optional placeholder from matching and generating URLs.

Ratchet API documentation generated by ApiGen 2.8.0