Commit d462a729 authored by Taylor Otwell's avatar Taylor Otwell

adjusting route class.

parent 17213fe0
...@@ -54,8 +54,6 @@ class Route { ...@@ -54,8 +54,6 @@ class Route {
$this->key = $key; $this->key = $key;
$this->action = $action; $this->action = $action;
$this->parameters = array_map('urldecode', $parameters);
// Extract each URI from the route key. Since the route key has the request // Extract each URI from the route key. Since the route key has the request
// method, we will extract that from the string. If the URI points to the // method, we will extract that from the string. If the URI points to the
// root of the application, a single forward slash will be returned. // root of the application, a single forward slash will be returned.
...@@ -68,6 +66,8 @@ class Route { ...@@ -68,6 +66,8 @@ class Route {
// the bundle so we know if we need to run a bundle's global filters // the bundle so we know if we need to run a bundle's global filters
// when executing the route. // when executing the route.
$this->bundle = Bundle::resolve(head(explode('/', $this->uris[0]))); $this->bundle = Bundle::resolve(head(explode('/', $this->uris[0])));
$this->parameters = array_map('urldecode', $parameters);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment