interface RouterInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/RouterInterface.php \Symfony\Component\Routing\RouterInterface
RouterInterface is the interface that all Router classes must implement.
This interface is the concatenation of UrlMatcherInterface and UrlGeneratorInterface.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- interface \Symfony\Component\Routing\Matcher\UrlMatcherInterface; interface \Symfony\Component\Routing\Generator\UrlGeneratorInterface
- interface \Symfony\Component\Routing\RouterInterface
Expanded class hierarchy of RouterInterface
All classes that implement RouterInterface
7 files declare their use of RouterInterface
- AccessAwareRouterInterface.php in core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouterInterface.php - Contains \Drupal\Core\Routing\AccessAwareRouterInterface.
- ChainedRouterInterface.php in vendor/
symfony-cmf/ routing/ ChainedRouterInterface.php - ChainRouter.php in vendor/
symfony-cmf/ routing/ ChainRouter.php - ChainRouterInterface.php in vendor/
symfony-cmf/ routing/ ChainRouterInterface.php - ChainRouterTest.php in vendor/
symfony-cmf/ routing/ Tests/ Routing/ ChainRouterTest.php
File
- vendor/
symfony/ routing/ RouterInterface.php, line 24
Namespace
Symfony\Component\RoutingView source
interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface {
/**
* Gets the RouteCollection instance associated with this Router.
*
* @return RouteCollection A RouteCollection instance
*/
public function getRouteCollection();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequestContextAwareInterface:: |
public | function | Gets the request context. | 9 |
RequestContextAwareInterface:: |
public | function | Sets the request context. | 9 |
RouterInterface:: |
public | function | Gets the RouteCollection instance associated with this Router. | 4 |
UrlGeneratorInterface:: |
constant | Generates an absolute path, e.g. "/dir/file". | ||
UrlGeneratorInterface:: |
constant | Generates an absolute URL, e.g. "http://example.com/dir/file". | ||
UrlGeneratorInterface:: |
public | function | Generates a URL or path for a specific route based on the given parameters. | 8 |
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". | ||
UrlMatcherInterface:: |
public | function | Tries to match a URL path with a set of routes. | 5 |