abstract class MatcherDumper

Same name in this branch

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

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of MatcherDumper

File

drupal/core/vendor/symfony/routing/Symfony/Component/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. 3