You are here

abstract class MatcherDumper in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/Matcher/Dumper/MatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\MatcherDumper
  2. 8 core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\MatcherDumper
  3. 8 core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper
Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Matcher/Dumper/MatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\MatcherDumper

MatcherDumper is the abstract class for all built-in matcher dumpers.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of MatcherDumper

File

vendor/symfony/routing/Matcher/Dumper/MatcherDumper.php, line 21

Namespace

Symfony\Component\Routing\Matcher\Dumper
View source
abstract class MatcherDumper implements MatcherDumperInterface {

  /**
   * @var RouteCollection
   */
  private $routes;

  /**
   * Constructor.
   *
   * @param RouteCollection $routes The RouteCollection to dump
   */
  public function __construct(RouteCollection $routes) {
    $this->routes = $routes;
  }

  /**
   * {@inheritdoc}
   */
  public function getRoutes() {
    return $this->routes;
  }

}

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.
MatcherDumperInterface::dump public function Dumps a set of routes to a string representation of executable code that can then be used to match a request against these routes. 5