We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b703b commit bdba887Copy full SHA for bdba887
2 files changed
system/Router/Exceptions/RedirectException.php
@@ -8,8 +8,5 @@
8
9
class RedirectException extends \Exception
10
{
11
- public static function forRedirectIntercept(string $route)
12
- {
13
- return new static($route);
14
- }
+
15
}
system/Router/Router.php
@@ -484,7 +484,7 @@ protected function checkRoutes(string $uri): bool
484
// Is this route supposed to redirect to another?
485
if ($this->collection->isRedirect($key))
486
487
- throw RedirectException::forRedirectIntercept($val, $this->collection->getRedirectCode($key));
+ throw new RedirectException($val, $this->collection->getRedirectCode($key));
488
489
490
$this->setRequest(explode('/', $val));
0 commit comments