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\Responses;
9:
10: use Nette;
11:
12:
13: /**
14: * Forwards to new request.
15: *
16: * @author David Grudl
17: *
18: * @property-read Nette\Application\Request $request
19: */
20: class ForwardResponse extends Nette\Object implements Nette\Application\IResponse
21: {
22: /** @var Nette\Application\Request */
23: private $request;
24:
25:
26: public function __construct(Nette\Application\Request $request)
27: {
28: $this->request = $request;
29: }
30:
31:
32: /**
33: * @return Nette\Application\Request
34: */
35: public function getRequest()
36: {
37: return $this->request;
38: }
39:
40:
41: /**
42: * Sends response to output.
43: * @return void
44: */
45: public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse)
46: {
47: }
48:
49: }
50: