class PhpMatcherDumper extends MatcherDumper
PhpMatcherDumper creates a PHP class able to match URLs for a given set of routes.
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 PHP class. | |
addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) |
Details
__construct(RouteCollection $routes)
Constructor.
RouteCollection getRoutes()
Gets the routes to dump.
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
Please login to continue.