Remove backtrace function from getRoute method.
This commit is contained in:
@ -69,8 +69,7 @@ class Router
|
|||||||
if ($this->routeIsExists($name)) {
|
if ($this->routeIsExists($name)) {
|
||||||
return $this->getRouteByName($name);
|
return $this->getRouteByName($name);
|
||||||
} else {
|
} else {
|
||||||
$btrace = debug_backtrace();
|
throw new ErrorException('Unknown route name: "' . $name . '".');
|
||||||
throw new ErrorException('Unknown route name: "' . $name . '". ' . 'Call from "' . $btrace[0]['file'] . '" on line ' . $btrace[0]['line'] . '.');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user