Skip to content

Commit

Permalink
Merge pull request #1696 from christoph-kluge/refresh-route-collection
Browse files Browse the repository at this point in the history
Refresh RouteCollection before dispatching to the route actions
  • Loading branch information
specialtactics authored Jan 3, 2020
2 parents e718128 + 310460c commit a76359f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Routing/Adapter/Laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ protected function mergeOldRoutes($version)
foreach ($this->oldRoutes as $route) {
$this->mergedRoutes[$version]->add($route);
}

$this->mergedRoutes[$version]->refreshNameLookups();
$this->mergedRoutes[$version]->refreshActionLookups();
}

return $this->mergedRoutes[$version];
Expand Down

0 comments on commit a76359f

Please sign in to comment.