This commit is contained in:
Bastian Allgeier
2020-07-07 12:40:13 +02:00
parent 5f025ac2c2
commit f79d2e960c
176 changed files with 10532 additions and 5343 deletions

View File

@@ -107,13 +107,14 @@ class Router
$result = $route->action()->call($route, ...$route->arguments());
}
$loop = false;
$loop = false;
} catch (Exceptions\NextRouteException $e) {
$ignore[] = $route;
}
if (is_a(static::$afterEach, 'Closure') === true) {
$result = (static::$afterEach)($route, $path, $method, $result);
$final = $loop === false;
$result = (static::$afterEach)($route, $path, $method, $result, $final);
}
}