Skip to content

Commit

Permalink
Make fallback routes use InflectedRoute.
Browse files Browse the repository at this point in the history
This preserves behavior with the old default routes, and since we don't
have :controller as a default key, this solves needing to re-add
inflection in ControllerFactoryFilter.
  • Loading branch information
markstory committed Jul 3, 2014
1 parent 9d9453a commit 9633eb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Routing/ScopedRouteCollection.php
Expand Up @@ -634,8 +634,8 @@ public function merge(ScopedRouteCollection $collection) {
* @return void
*/
public function fallbacks() {
$this->connect('/:controller');
$this->connect('/:controller/:action/*');
$this->connect('/:controller', ['action' => 'index'], ['routeClass' => 'InflectedRoute']);
$this->connect('/:controller/:action/*', [], ['routeClass' => 'InflectedRoute']);
}

}

0 comments on commit 9633eb6

Please sign in to comment.