Symfony\Component\Routing\Matcher\Dumper\PhpMatcherDumper
PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class PhpMatcherDumper
extends MatcherDumper
{
- // methods
- public string dump()
- private string generateMatchMethod()
- private string compileRoutes()
- private string compilePrefixRoutes()
- private string compileRoute()
- private DumperCollection groupRoutesByHostRegex()
- private DumperPrefixCollection buildPrefixTree()
- // Inherited methods from MatcherDumper
- public void __construct()
- public void getRoutes()
Hierarchy
Methods
private
- buildPrefixTree() — Organizes the routes into a prefix tree.
- compilePrefixRoutes() — Generates PHP code recursively to match a tree of routes
- compileRoute() — Compiles a single Route to PHP code used to match it against the path info.
- compileRoutes() — Generates PHP code to match a RouteCollection with all its routes.
- generateMatchMethod() — Generates the code for the match method implementing UrlMatcherInterface.
- groupRoutesByHostRegex() — Groups consecutive routes having the same host regex.
public
- dump() — Dumps a set of routes to a PHP class.
Inherited from Symfony\Component\Routing\Matcher\Dumper\MatcherDumper
public
- getRoutes() — {@inheritdoc}