Skip to content

Commit

Permalink
add missing public methods to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 7, 2020
1 parent 1c4e04d commit e4f477c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Illuminate/Routing/CompiledRouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
18 changes: 18 additions & 0 deletions src/Illuminate/Routing/RouteCollectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit e4f477c

Please sign in to comment.