1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Application;
9:
10: use Nette;
11:
12:
13: /**
14: * The bi-directional router.
15: */
16: interface IRouter
17: {
18: /** only matching route */
19: const ONE_WAY = 1;
20:
21: /** HTTPS route */
22: const SECURED = 2;
23:
24: /**
25: * Maps HTTP request to a Request object.
26: * @return Request|NULL
27: */
28: function match(Nette\Http\IRequest $httpRequest);
29:
30: /**
31: * Constructs absolute URL from Request object.
32: * @return string|NULL
33: */
34: function constructUrl(Request $appRequest, Nette\Http\Url $refUrl);
35:
36: }
37: