mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing ConsoleShell's use of Router. Fixes #236
This commit is contained in:
parent
c4afeb3fe6
commit
85b193048d
1 changed files with 2 additions and 2 deletions
|
@ -353,8 +353,8 @@ class ConsoleShell extends Shell {
|
|||
foreach (array_keys($router->getNamedExpressions()) as $var) {
|
||||
unset(${$var});
|
||||
}
|
||||
for ($i = 0; $i < count($router->routes); $i++) {
|
||||
$router->compile($i);
|
||||
for ($i = 0, $len = count($router->routes); $i < $len; $i++) {
|
||||
$router->routes[$i]->compile();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue