interface 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

Expanded class hierarchy of RouterInterface

All classes that implement RouterInterface

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RouterInterface.php, line 24

Namespace

Symfony\Component\Routing
View source
interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface {

  /**
   * Gets the RouteCollection instance associated with this Router.
   *
   * @return RouteCollection A RouteCollection instance
   */
  public function getRouteCollection();

}

Members

Namesort descending Modifiers Type Description Overrides
RequestContextAwareInterface::getContext public function Gets the request context. 5
RequestContextAwareInterface::setContext public function Sets the request context. 5
RouterInterface::getRouteCollection public function Gets the RouteCollection instance associated with this Router. 1
UrlGeneratorInterface::generate public function Generates a URL from the given parameters. 2
UrlMatcherInterface::match public function Tries to match a URL path with a set of routes. 2