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)

No description

getRoutes()

Gets the routes to dump.

string
dump(array $options = array())

Dumps a set of Apache mod_rewrite rules.

Details

in MatcherDumper at line 25
__construct(RouteCollection $routes)

Parameters

RouteCollection $routes

in MatcherDumper at line 33
RouteCollection getRoutes()

Gets the routes to dump.

Return Value

RouteCollection A RouteCollection instance

at line 42
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