class PhpMatcherDumper extends MatcherDumper

PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.

Methods

__construct(RouteCollection $routes)

Constructor.

getRoutes()

Gets the routes to dump.

string
dump(array $options = array())

Dumps a set of routes to a PHP class.

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 47
string dump(array $options = array())

Dumps a set of routes to a PHP class.

Available options:

  • class: The class name
  • base_class: The base class name

Parameters

array $options An array of options

Return Value

string Executable code

at line line 87
addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)