Skip to content

Commit a692730

Browse files
committed
[Routing] added a warning about the getRouteCollection() method
1 parent 53c529c commit a692730

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RouterInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ interface RouterInterface extends UrlMatcherInterface, UrlGeneratorInterface
2626
/**
2727
* Gets the RouteCollection instance associated with this Router.
2828
*
29+
* WARNING: This method should never be used at runtime as it is SLOW.
30+
* You might use it in a cache warmer though.
31+
*
2932
* @return RouteCollection A RouteCollection instance
3033
*/
3134
public function getRouteCollection();

0 commit comments

Comments
 (0)