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