[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/routing/Symfony/Component/Routing/Matcher/ -> UrlMatcher.php (summary)

(no description)

File Size: 204 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

UrlMatcher:: (8 methods):
  __construct()
  setContext()
  getContext()
  match()
  matchCollection()
  getAttributes()
  handleRouteRequirements()
  mergeDefaults()


Class: UrlMatcher  - X-Ref

UrlMatcher matches URL based on a set of routes.

__construct(RouteCollection $routes, RequestContext $context)   X-Ref
Constructor.

param: RouteCollection $routes  A RouteCollection instance
param: RequestContext  $context The context

setContext(RequestContext $context)   X-Ref
{@inheritdoc}


getContext()   X-Ref
{@inheritdoc}


match($pathinfo)   X-Ref
{@inheritdoc}


matchCollection($pathinfo, RouteCollection $routes)   X-Ref
Tries to match a URL with a set of routes.

param: string          $pathinfo The path info to be parsed
param: RouteCollection $routes   The set of routes
return: array An array of parameters

getAttributes(Route $route, $name, array $attributes)   X-Ref
Returns an array of values to use as request attributes.

As this method requires the Route object, it is not available
in matchers that do not have access to the matched Route instance
(like the PHP and Apache matcher dumpers).

param: Route  $route      The route we are matching against
param: string $name       The name of the route
param: array  $attributes An array of attributes from the matcher
return: array An array of parameters

handleRouteRequirements($pathinfo, $name, Route $route)   X-Ref
Handles specific route requirements.

param: string $pathinfo The path
param: string $name     The route name
param: Route  $route    The route
return: array The first element represents the status, the second contains additional information

mergeDefaults($params, $defaults)   X-Ref
Get merged default parameters.

param: array $params   The parameters
param: array $defaults The defaults
return: array Merged default parameters



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1