[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/routing/Matcher/Dumper/ -> PhpMatcherDumper.php (summary)

(no description)

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

Defines 1 class

PhpMatcherDumper:: (11 methods):
  dump()
  __construct()
  addExpressionLanguageProvider()
  generateMatchMethod()
  match()
  compileRoutes()
  buildStaticPrefixCollection()
  compileStaticPrefixRoutes()
  compileRoute()
  groupRoutesByHostRegex()
  getExpressionLanguage()


Class: PhpMatcherDumper  - X-Ref

PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.

dump(array $options = [])   X-Ref
Dumps a set of routes to a PHP class.

Available options:

* class:      The class name
* base_class: The base class name

param: array $options An array of options
return: string A PHP class representing the matcher class

__construct(RequestContext \$context)   X-Ref
This class has been auto-generated
by the Symfony Routing Component.


addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)   X-Ref
No description

generateMatchMethod($supportsRedirections)   X-Ref
Generates the code for the match method implementing UrlMatcherInterface.

param: bool $supportsRedirections Whether redirections are supported by the base class
return: string Match method as PHP code

match(\$rawPathinfo)   X-Ref
No description

compileRoutes(RouteCollection $routes, $supportsRedirections)   X-Ref
Generates PHP code to match a RouteCollection with all its routes.

param: RouteCollection $routes               A RouteCollection instance
param: bool            $supportsRedirections Whether redirections are supported by the base class
return: string PHP code

buildStaticPrefixCollection(DumperCollection $collection)   X-Ref
No description

compileStaticPrefixRoutes(StaticPrefixCollection $collection, $supportsRedirections, $ifOrElseIf = 'if')   X-Ref
Generates PHP code to match a tree of routes.

param: StaticPrefixCollection $collection           A StaticPrefixCollection instance
param: bool                   $supportsRedirections Whether redirections are supported by the base class
param: string                 $ifOrElseIf           either "if" or "elseif" to influence chaining
return: string PHP code

compileRoute(Route $route, $name, $supportsRedirections, $parentPrefix = null)   X-Ref
Compiles a single Route to PHP code used to match it against the path info.

param: Route       $route                A Route instance
param: string      $name                 The name of the Route
param: bool        $supportsRedirections Whether redirections are supported by the base class
param: string|null $parentPrefix         The prefix of the parent collection used to optimize the code
return: string PHP code

groupRoutesByHostRegex(RouteCollection $routes)   X-Ref
Groups consecutive routes having the same host regex.

The result is a collection of collections of routes having the same host regex.

param: RouteCollection $routes A flat RouteCollection
return: DumperCollection A collection with routes grouped by host regex in sub-collections

getExpressionLanguage()   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1