From e4f477c42d3e24f6cdf44a45801c0db476ad2b91 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 7 Mar 2020 07:47:17 -0600 Subject: [PATCH] add missing public methods to interface --- .../Routing/CompiledRouteCollection.php | 24 +++++++++++++++++++ .../Routing/RouteCollectionInterface.php | 18 ++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/src/Illuminate/Routing/CompiledRouteCollection.php b/src/Illuminate/Routing/CompiledRouteCollection.php index 747b859659d8..2cc9202c10cd 100644 --- a/src/Illuminate/Routing/CompiledRouteCollection.php +++ b/src/Illuminate/Routing/CompiledRouteCollection.php @@ -78,6 +78,30 @@ public function add(Route $route) return $route; } + /** + * Refresh the name look-up table. + * + * This is done in case any names are fluently defined or if routes are overwritten. + * + * @return void + */ + public function refreshNameLookups() + { + // + } + + /** + * Refresh the action look-up table. + * + * This is done in case any actions are overwritten with new controllers. + * + * @return void + */ + public function refreshActionLookups() + { + // + } + /** * Find the first route matching a given request. * diff --git a/src/Illuminate/Routing/RouteCollectionInterface.php b/src/Illuminate/Routing/RouteCollectionInterface.php index fa651d3d4665..6a6ba95f34b3 100644 --- a/src/Illuminate/Routing/RouteCollectionInterface.php +++ b/src/Illuminate/Routing/RouteCollectionInterface.php @@ -14,6 +14,24 @@ interface RouteCollectionInterface */ public function add(Route $route); + /** + * Refresh the name look-up table. + * + * This is done in case any names are fluently defined or if routes are overwritten. + * + * @return void + */ + public function refreshNameLookups(); + + /** + * Refresh the action look-up table. + * + * This is done in case any actions are overwritten with new controllers. + * + * @return void + */ + public function refreshActionLookups(); + /** * Find the first route matching a given request. *