Skip to content

Commit 5bdedc1

Browse files
committed
uses nette/routing
1 parent 5919611 commit 5bdedc1

File tree

6 files changed

+86
-663
lines changed

6 files changed

+86
-663
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"php": ">=7.1",
1919
"nette/component-model": "^3.0.0-RC1",
2020
"nette/http": "^3.0",
21+
"nette/routing": "~3.0.0",
2122
"nette/utils": "^3.0"
2223
},
2324
"suggest": {

src/Application/IRouter.php

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,8 @@
1313

1414

1515
/**
16-
* The bi-directional router.
16+
* @deprecated use Nette\Routing\Router
1717
*/
18-
interface IRouter
18+
interface IRouter extends Nette\Routing\Router
1919
{
20-
/** only matching route */
21-
public const ONE_WAY = 0b0001;
22-
23-
/**
24-
* Maps HTTP request to an array.
25-
*/
26-
function match(Nette\Http\IRequest $httpRequest): ?array;
27-
28-
/**
29-
* Constructs absolute URL from array.
30-
*/
31-
function constructUrl(array $params, Nette\Http\UrlScript $refUrl): ?string;
3220
}

0 commit comments

Comments
 (0)