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

  • RedirectableUrlMatcher
  • TraceableUrlMatcher
  • UrlMatcher

Interfaces

  • RedirectableUrlMatcherInterface
  • RequestMatcherInterface
  • UrlMatcherInterface
  • Overview
  • Namespace
  • Class
  • Tree

Interface UrlMatcherInterface

UrlMatcherInterface is the interface that all URL matcher classes must implement.

Symfony\Component\Routing\Matcher\UrlMatcherInterface implements Symfony\Component\Routing\RequestContextAwareInterface

Direct known implementers

Symfony\Component\Routing\Matcher\UrlMatcher, Symfony\Component\Routing\RouterInterface

Indirect known implementers

Symfony\Component\Routing\Matcher\RedirectableUrlMatcher, Symfony\Component\Routing\Matcher\TraceableUrlMatcher, Symfony\Component\Routing\Router, Symfony\Component\Routing\Tests\Fixtures\RedirectableUrlMatcher
Namespace: Symfony\Component\Routing\Matcher
Author: Fabien Potencier <fabien@symfony.com>
Located at Matcher/UrlMatcherInterface.php
Methods summary
public array
# match( string $pathinfo )

Tries to match a URL path with a set of routes.

Tries to match a URL path with a set of routes.

If the matcher can not find information, it must throw one of the exceptions documented below.

Parameters

$pathinfo
string
$pathinfo The path info to be parsed (raw format, i.e. not urldecoded)

Returns

array
An array of parameters

Throws

Symfony\Component\Routing\Exception\ResourceNotFoundException
If the resource could not be found
Symfony\Component\Routing\Exception\MethodNotAllowedException
If the resource was found but the request method is not allowed
Methods inherited from Symfony\Component\Routing\RequestContextAwareInterface
getContext(), setContext()
Ratchet API documentation generated by ApiGen 2.8.0