Chris@0: Chris@0: */ Chris@0: interface ChainRouterInterface extends RouterInterface, RequestMatcherInterface Chris@0: { Chris@0: /** Chris@0: * Add a Router to the index. Chris@0: * Chris@0: * @param RouterInterface $router The router instance. Instead of RouterInterface, may also Chris@0: * be RequestMatcherInterface and UrlGeneratorInterface. Chris@0: * @param int $priority The priority Chris@0: */ Chris@0: public function add($router, $priority = 0); Chris@0: Chris@0: /** Chris@0: * Sorts the routers and flattens them. Chris@0: * Chris@0: * @return RouterInterface[] or RequestMatcherInterface and UrlGeneratorInterface. Chris@0: */ Chris@0: public function all(); Chris@0: }