PHP Class 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.
Inheritance: implements Symfony\Component\Routing\Matcher\UrlMatcherInterface, implements Symfony\Component\Routing\Matcher\RequestMatcherInterface
ファイルを表示 Open project: flint/flint Class Usage Examples

Protected Properties

Property Type Description
$context
$matchers

Public Methods

Method Description
__construct ( $matchers = [] )
add ( Symfony\Component\Routing\Matcher\UrlMatcherInterface $matcher, $priority )
getContext ( )
match ( $pathinfo )
matchRequest ( Request $request )
setContext ( Symfony\Component\Routing\RequestContext $context )

Protected Methods

Method Description
doMatch ( $pathinfo, Request $request = null )
sort ( )

Method Details

__construct() public method

public __construct ( $matchers = [] )

add() public method

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

doMatch() protected method

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

getContext() public method

public getContext ( )

match() public method

public match ( $pathinfo )

matchRequest() public method

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

setContext() public method

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

sort() protected method

protected sort ( )

Property Details

$context protected_oe property

protected $context

$matchers protected_oe property

protected $matchers