PHP Класс Flint\Routing\ChainMatcher

This wraps multiple UrlMatcherInterface's in order to not overwrite Silex internals. Created with inspiration from my own work of symfony-cmf ChainRouter and the ChainMatcher found in Drupal.
Наследование: implements Symfony\Component\Routing\Matcher\UrlMatcherInterface, implements Symfony\Component\Routing\Matcher\RequestMatcherInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$context
$matchers

Открытые методы

Метод Описание
__construct ( $matchers = [] )
add ( Symfony\Component\Routing\Matcher\UrlMatcherInterface $matcher, $priority )
getContext ( )
match ( $pathinfo )
matchRequest ( Request $request )
setContext ( Symfony\Component\Routing\RequestContext $context )

Защищенные методы

Метод Описание
doMatch ( $pathinfo, Request $request = null )
sort ( )

Описание методов

__construct() публичный Метод

public __construct ( $matchers = [] )

add() публичный Метод

public add ( Symfony\Component\Routing\Matcher\UrlMatcherInterface $matcher, $priority )
$matcher Symfony\Component\Routing\Matcher\UrlMatcherInterface

doMatch() защищенный Метод

protected doMatch ( $pathinfo, Request $request = null )
$request Symfony\Component\HttpFoundation\Request

getContext() публичный Метод

public getContext ( )

match() публичный Метод

public match ( $pathinfo )

matchRequest() публичный Метод

public matchRequest ( Request $request )
$request Symfony\Component\HttpFoundation\Request

setContext() публичный Метод

public setContext ( Symfony\Component\Routing\RequestContext $context )
$context Symfony\Component\Routing\RequestContext

sort() защищенный Метод

protected sort ( )

Описание свойств

$context защищенное свойство

protected $context

$matchers защищенное свойство

protected $matchers