Skip to content

Commit

Permalink
RouteList: utilizes new afterMatch() method
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 5, 2023
1 parent 585523a commit 8b2d9d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php": ">=7.2",
"nette/component-model": "^3.0",
"nette/http": "^3.0.2",
"nette/routing": "^3.0.2",
"nette/routing": "^3.0.5",
"nette/utils": "^3.2.1 || ~4.0.0"
},
"suggest": {
Expand Down
4 changes: 1 addition & 3 deletions src/Application/Routers/RouteList.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ public function __construct(?string $module = null)
/**
* Maps HTTP request to an array.
*/
public function match(Nette\Http\IRequest $httpRequest): ?array
protected function afterMatch(array $params): array
{
$params = parent::match($httpRequest);

$presenter = $params[self::PresenterKey] ?? null;
if (is_string($presenter) && strncmp($presenter, 'Nette:', 6)) {
$params[self::PresenterKey] = $this->module . $presenter;
Expand Down

0 comments on commit 8b2d9d2

Please sign in to comment.