use 'as' instead of 'name'.
This commit is contained in:
parent
86e109b7bc
commit
6ced385d20
|
@ -213,7 +213,7 @@ protected function handler()
|
||||||
*/
|
*/
|
||||||
public function is($name)
|
public function is($name)
|
||||||
{
|
{
|
||||||
return array_get($this->action, 'name') === $name;
|
return array_get($this->action, 'as') === $name;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -371,7 +371,7 @@ public static function find($name)
|
||||||
{
|
{
|
||||||
foreach ($routes as $key => $value)
|
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);
|
return static::$names[$name] = array($key => $value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue