use 'as' instead of 'name'.

This commit is contained in:
Taylor Otwell
2012-02-13 16:50:41 -06:00
parent 86e109b7bc
commit 6ced385d20
2 changed files with 2 additions and 2 deletions

View File

@@ -371,7 +371,7 @@ class Router {
{
foreach ($routes as $key => $value)
{
if (isset($value['name']) and $value['name'] === $name)
if (isset($value['as']) and $value['as'] === $name)
{
return static::$names[$name] = array($key => $value);
}