A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.
@author Larry Garfield @author David Buchmann
Expanded class hierarchy of DynamicRouter
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DynamicRouter:: |
protected | property | ||
DynamicRouter:: |
protected | property | ||
DynamicRouter:: |
protected | property | ||
DynamicRouter:: |
protected | property | ||
DynamicRouter:: |
protected | property | Cached sorted list of enhancers | |
DynamicRouter:: |
protected | property | The regexp pattern that needs to be matched before a dynamic lookup is made | |
DynamicRouter:: |
public | function | Add route enhancers to the router to let them generate information on matched routes. | |
DynamicRouter:: |
protected | function | Apply the route enhancers to the defaults, according to priorities | |
DynamicRouter:: |
public | function |
Generates a URL from the given parameters. Overrides UrlGeneratorInterface:: |
|
DynamicRouter:: |
public | function |
Gets the request context. Overrides RequestContextAwareInterface:: |
|
DynamicRouter:: |
public | function | ||
DynamicRouter:: |
public | function | ||
DynamicRouter:: |
public | function |
Not implemented. Overrides RouterInterface:: |
|
DynamicRouter:: |
public | function |
Forwards to the generator. Overrides VersatileGeneratorInterface:: |
|
DynamicRouter:: |
public | function | Sorts the enhancers and flattens them. | |
DynamicRouter:: |
public | function |
Tries to match a URL path with a set of routes. Overrides UrlMatcherInterface:: |
|
DynamicRouter:: |
public | function |
Tries to match a request with a set of routes and returns the array of
information for that route. Overrides RequestMatcherInterface:: |
|
DynamicRouter:: |
public | function |
Sets the request context. Overrides RequestContextAwareInterface:: |
|
DynamicRouter:: |
protected | function | Sort enhancers by priority. | |
DynamicRouter:: |
public | function |
Delegate to our generator Overrides VersatileGeneratorInterface:: |
|
DynamicRouter:: |
public | function | ||
UrlGeneratorInterface:: |
constant | Generates an absolute path, e.g. "/dir/file". | ||
UrlGeneratorInterface:: |
constant | Generates an absolute URL, e.g. "http://example.com/dir/file". | ||
UrlGeneratorInterface:: |
constant | Generates a network path, e.g. "//example.com/dir/file". Such reference reuses the current scheme but specifies the host. | ||
UrlGeneratorInterface:: |
constant | Generates a relative path based on the current request path, e.g. "../parent-file". |