class PhpMatcherDumper

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

@author Fabien Potencier <fabien@symfony.com> @author Tobias Schultze <http://tobion.de> @author Arnaud Le Blanc <arnaud.lb@gmail.com>

Hierarchy

Expanded class hierarchy of PhpMatcherDumper

1 file declares its use of PhpMatcherDumper

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php, line 24

Namespace

Symfony\Component\Routing\Matcher\Dumper
View source

Members

Namesort descending Modifiers Type Description Overrides
MatcherDumper::$routes private property
MatcherDumper::getRoutes public function Gets the routes to dump. Overrides MatcherDumperInterface::getRoutes
MatcherDumper::__construct public function Constructor.
PhpMatcherDumper::buildPrefixTree private function Organizes the routes into a prefix tree.
PhpMatcherDumper::compilePrefixRoutes private function Generates PHP code recursively to match a tree of routes
PhpMatcherDumper::compileRoute private function Compiles a single Route to PHP code used to match it against the path info.
PhpMatcherDumper::compileRoutes private function Generates PHP code to match a RouteCollection with all its routes.
PhpMatcherDumper::dump public function Dumps a set of routes to a PHP class. Overrides MatcherDumperInterface::dump
PhpMatcherDumper::generateMatchMethod private function Generates the code for the match method implementing UrlMatcherInterface.
PhpMatcherDumper::groupRoutesByHostRegex private function Groups consecutive routes having the same host regex.