class DynamicRouter

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

Hierarchy

Expanded class hierarchy of DynamicRouter

1 file declares its use of DynamicRouter
1 string reference to 'DynamicRouter'

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php, line 26

Namespace

Symfony\Cmf\Component\Routing
View source

Members

Namesort descending Modifiers Type Description Overrides
DynamicRouter::$context protected property
DynamicRouter::$enhancers protected property
DynamicRouter::$generator protected property
DynamicRouter::$matcher protected property
DynamicRouter::$sortedEnhancers protected property Cached sorted list of enhancers
DynamicRouter::$uriFilterRegexp protected property The regexp pattern that needs to be matched before a dynamic lookup is made
DynamicRouter::addRouteEnhancer public function Add route enhancers to the router to let them generate information on matched routes.
DynamicRouter::applyRouteEnhancers protected function Apply the route enhancers to the defaults, according to priorities
DynamicRouter::generate public function Generates a URL from the given parameters. Overrides UrlGeneratorInterface::generate
DynamicRouter::getContext public function Gets the request context. Overrides RequestContextAwareInterface::getContext
DynamicRouter::getGenerator public function
DynamicRouter::getMatcher public function
DynamicRouter::getRouteCollection public function Not implemented. Overrides RouterInterface::getRouteCollection
DynamicRouter::getRouteDebugMessage public function Forwards to the generator. Overrides VersatileGeneratorInterface::getRouteDebugMessage
DynamicRouter::getRouteEnhancers public function Sorts the enhancers and flattens them.
DynamicRouter::match public function Tries to match a URL path with a set of routes. Overrides UrlMatcherInterface::match
DynamicRouter::matchRequest public function Tries to match a request with a set of routes and returns the array of information for that route. Overrides RequestMatcherInterface::matchRequest
DynamicRouter::setContext public function Sets the request context. Overrides RequestContextAwareInterface::setContext
DynamicRouter::sortRouteEnhancers protected function Sort enhancers by priority.
DynamicRouter::supports public function Delegate to our generator Overrides VersatileGeneratorInterface::supports
DynamicRouter::__construct public function
UrlGeneratorInterface::ABSOLUTE_PATH constant Generates an absolute path, e.g. "/dir/file".
UrlGeneratorInterface::ABSOLUTE_URL constant Generates an absolute URL, e.g. "http://example.com/dir/file".
UrlGeneratorInterface::NETWORK_PATH constant Generates a network path, e.g. "//example.com/dir/file". Such reference reuses the current scheme but specifies the host.
UrlGeneratorInterface::RELATIVE_PATH constant Generates a relative path based on the current request path, e.g. "../parent-file".