Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/Event/GetResponseEvent.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
22 * | 22 * |
23 * @author Bernhard Schussek <bschussek@gmail.com> | 23 * @author Bernhard Schussek <bschussek@gmail.com> |
24 */ | 24 */ |
25 class GetResponseEvent extends KernelEvent | 25 class GetResponseEvent extends KernelEvent |
26 { | 26 { |
27 /** | |
28 * The response object. | |
29 * | |
30 * @var Response | |
31 */ | |
32 private $response; | 27 private $response; |
33 | 28 |
34 /** | 29 /** |
35 * Returns the response object. | 30 * Returns the response object. |
36 * | 31 * |
41 return $this->response; | 36 return $this->response; |
42 } | 37 } |
43 | 38 |
44 /** | 39 /** |
45 * Sets a response and stops event propagation. | 40 * Sets a response and stops event propagation. |
46 * | |
47 * @param Response $response | |
48 */ | 41 */ |
49 public function setResponse(Response $response) | 42 public function setResponse(Response $response) |
50 { | 43 { |
51 $this->response = $response; | 44 $this->response = $response; |
52 | 45 |