Skip to content
Permalink
Browse files

Make fallback routes use InflectedRoute.

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 9633eb6fb468932dd3cbd7203cc1840e5c9359b1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Routing/ScopedRouteCollection.php
@@ -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.
You can’t perform that action at this time.