abstract class GeneratorDumper

GeneratorDumper is the base class for all built-in generator dumpers.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of GeneratorDumper

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/Dumper/GeneratorDumper.php, line 21

Namespace

Symfony\Component\Routing\Generator\Dumper
View source
abstract class GeneratorDumper implements GeneratorDumperInterface {

  /**
   * @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
GeneratorDumper::$routes private property
GeneratorDumper::getRoutes public function Gets the routes to dump. Overrides GeneratorDumperInterface::getRoutes
GeneratorDumper::__construct public function Constructor.
GeneratorDumperInterface::dump public function Dumps a set of routes to a string representation of executable code that can then be used to generate a URL of such a route. 1