class ApacheMatcherDumper extends MatcherDumper

deprecated since version 2.5, to be removed in 3.0. The performance gains are minimal and it's very hard to replicate the behavior of PHP implementation.

Dumps a set of Apache mod_rewrite rules.

Methods

__construct(RouteCollection $routes)

Constructor.

getRoutes()

Gets the routes to dump.

string
dump(array $options = array())

Dumps a set of Apache mod_rewrite rules.

Details

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

Constructor.

Parameters

RouteCollection $routes The RouteCollection to dump

in MatcherDumper at line line 41
RouteCollection getRoutes()

Gets the routes to dump.

Return Value

RouteCollection A RouteCollection instance

at line line 44
string dump(array $options = array())

Dumps a set of Apache mod_rewrite rules.

Available options:

  • script_name: The script name (app.php by default)
  • base_uri: The base URI ("" by default)

Parameters

array $options An array of options

Return Value

string Executable code

Exceptions

LogicException When the route regex is invalid