From 1467bdb86837e132891dd1b5605248a736cca5fe Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 30 Sep 2011 07:48:34 +0200 Subject: [PATCH] added RouterInterface::getRouteCollection() --- CHANGELOG-2.1.md | 4 ++++ src/Symfony/Component/Routing/RouterInterface.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG-2.1.md b/CHANGELOG-2.1.md index 3df43e0d3e..041d6d373c 100644 --- a/CHANGELOG-2.1.md +++ b/CHANGELOG-2.1.md @@ -68,6 +68,10 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c * added a File-based profiler storage * added a MongoDB-based profiler storage +### Routing + + * added RouterInterface::getRouteCollection + ### Translation * added support for more than one fallback locale diff --git a/src/Symfony/Component/Routing/RouterInterface.php b/src/Symfony/Component/Routing/RouterInterface.php index 961342bf09..8591af86dd 100644 --- a/src/Symfony/Component/Routing/RouterInterface.php +++ b/src/Symfony/Component/Routing/RouterInterface.php @@ -23,4 +23,10 @@ use Symfony\Component\Routing\Matcher\UrlMatcherInterface; */ interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface { + /** + * Gets the RouteCollection instance associated with this Router. + * + * @return RouteCollection A RouteCollection instance + */ + function getRouteCollection(); }