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>
Expanded class hierarchy of RouterInterface
All classes that implement RouterInterface
interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface {
/**
* Gets the RouteCollection instance associated with this Router.
*
* @return RouteCollection A RouteCollection instance
*/
public function getRouteCollection();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequestContextAwareInterface:: |
public | function | Gets the request context. | 5 |
RequestContextAwareInterface:: |
public | function | Sets the request context. | 5 |
RouterInterface:: |
public | function | Gets the RouteCollection instance associated with this Router. | 1 |
UrlGeneratorInterface:: |
public | function | Generates a URL from the given parameters. | 2 |
UrlMatcherInterface:: |
public | function | Tries to match a URL path with a set of routes. | 2 |