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: class ForwardResponse implements Nette\Application\IResponse
17: {
18: use Nette\SmartObject;
19:
20: /** @var Nette\Application\Request */
21: private $request;
22:
23:
24: public function __construct(Nette\Application\Request $request)
25: {
26: $this->request = $request;
27: }
28:
29:
30: /**
31: * @return Nette\Application\Request
32: */
33: public function getRequest()
34: {
35: return $this->request;
36: }
37:
38:
39: /**
40: * Sends response to output.
41: * @return void
42: */
43: public function send(Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse)
44: {
45: }
46: }
47: