1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: */
11:
12: namespace Nette\Application\Responses;
13:
14: use Nette;
15:
16:
17:
18: /**
19: * Forwards to new request.
20: *
21: * @author David Grudl
22: *
23: * @property-read Nette\Application\Request $request
24: */
25: class ForwardResponse extends Nette\Object implements Nette\Application\IResponse
26: {
27: /** @var Nette\Application\Request */
28: private $request;
29:
30:
31:
32: public function __construct(Nette\Application\Request $request)
33: {
34: $this->request = $request;
35: }
36:
37:
38:
39: /**
40: * @return Nette\Application\Request
41: */
42: final public function getRequest()
43: {
44: return $this->request;
45: }
46:
47:
48:
49: /**
50: * Sends response to output.
51: * @return void
52: */
53: public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse)
54: {
55: }
56:
57: }
58: