Symfony2 API
Class

Symfony\Component\Routing\Generator\Dumper\PhpGeneratorDumper

class PhpGeneratorDumper extends GeneratorDumper

PhpGeneratorDumper creates a PHP class able to generate URLs for a given set of routes.

Methods

__construct(RouteCollection $routes)

Constructor.

from GeneratorDumper
RouteCollection getRoutes()

Gets the routes to dump.

from GeneratorDumper
string dump(array $options = array())

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.

Details

in GeneratorDumper at line 33
public __construct(RouteCollection $routes)

Constructor.

Parameters

RouteCollection $routes The RouteCollection to dump

in GeneratorDumper at line 41
public RouteCollection getRoutes()

Gets the routes to dump.

Return Value

RouteCollection A RouteCollection instance

at line 38
public string dump(array $options = array())

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.

Parameters

array $options An array of options

Return Value

string A PHP class representing the generator class