Skip to content

Commit a4862c7

Browse files
committed
RouteList: buildCache() renamed to warmupCache()
1 parent 6d12b3c commit a4862c7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Application/Routers/RouteList.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function match(Nette\Http\IRequest $httpRequest)
5555
public function constructUrl(Nette\Application\Request $appRequest, Nette\Http\Url $refUrl)
5656
{
5757
if ($this->cachedRoutes === NULL) {
58-
$this->buildCache();
58+
$this->warmupCache();
5959
}
6060

6161
if ($this->module) {
@@ -83,8 +83,7 @@ public function constructUrl(Nette\Application\Request $appRequest, Nette\Http\U
8383
}
8484

8585

86-
/** @internal */
87-
public function buildCache()
86+
public function warmupCache()
8887
{
8988
$routes = [];
9089
$routes['*'] = [];

src/Bridges/ApplicationDI/RoutingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
7171
try {
7272
$router = eval($method->getBody());
7373
if ($router instanceof Nette\Application\Routers\RouteList) {
74-
$router->buildCache();
74+
$router->warmupCache();
7575
}
7676
$s = serialize($router);
7777
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)