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