Symfony2 API
Class

Symfony\Component\Routing\Matcher\Dumper\ApacheMatcherDumper

class ApacheMatcherDumper extends MatcherDumper

Dumps a set of Apache mod_rewrite rules.

Methods

__construct(RouteCollection $routes)

Constructor.

from MatcherDumper
RouteCollection getRoutes()

Gets the routes to dump.

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

Dumps a set of routes to a string representation of executable code that can then be used to match a request against these routes.

Details

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

Constructor.

Parameters

RouteCollection $routes The RouteCollection to dump

in MatcherDumper 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 match a request against these routes.

Parameters

array $options An array of options

Return Value

string A string to be used as Apache rewrite rules