Skip to content

Commit 0638243

Browse files
committed
RouteList: utilizes new afterMatch() method
1 parent 585523a commit 0638243

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"php": ">=7.2",
1919
"nette/component-model": "^3.0",
2020
"nette/http": "^3.0.2",
21-
"nette/routing": "^3.0.2",
21+
"nette/routing": "^3.0.5",
2222
"nette/utils": "^3.2.1 || ~4.0.0"
2323
},
2424
"suggest": {

src/Application/Routers/RouteList.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ public function __construct(?string $module = null)
3232

3333

3434
/**
35-
* Maps HTTP request to an array.
35+
* Support for modules.
3636
*/
37-
public function match(Nette\Http\IRequest $httpRequest): ?array
37+
protected function afterMatch(array $params): ?array
3838
{
39-
$params = parent::match($httpRequest);
40-
4139
$presenter = $params[self::PresenterKey] ?? null;
4240
if (is_string($presenter) && strncmp($presenter, 'Nette:', 6)) {
4341
$params[self::PresenterKey] = $this->module . $presenter;

0 commit comments

Comments
 (0)