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