ApacheMatcherDumper deprecated

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.

from MatcherDumper
RouteCollection getRoutes()

Gets the routes to dump.

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

Dumps a set of Apache mod_rewrite rules.

Details

__construct(RouteCollection $routes)

Constructor.

Parameters

RouteCollection $routes The RouteCollection to dump

RouteCollection getRoutes()

Gets the routes to dump.

Return Value

RouteCollection A RouteCollection instance

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.html