Verzeichnisstruktur phpBB-3.1.0
- Veröffentlicht
- 27.10.2014
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
PostResponseEvent.php
01 <?php
02
03 /*
04 * This file is part of the Symfony package.
05 *
06 * (c) Fabien Potencier <fabien@symfony.com>
07 *
08 * For the full copyright and license information, please view the LICENSE
09 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\HttpKernel\Event;
13
14 use Symfony\Component\HttpKernel\HttpKernelInterface;
15 use Symfony\Component\EventDispatcher\Event;
16 use Symfony\Component\HttpFoundation\Request;
17 use Symfony\Component\HttpFoundation\Response;
18
19 /**
20 * Allows to execute logic after a response was sent
21 *
22 * @author Jordi Boggiano <j.boggiano@seld.be>
23 */
24 class PostResponseEvent extends Event
25 {
26 /**
27 * The kernel in which this event was thrown
28 * @var HttpKernelInterface
29 */
30 private $kernel;
31
32 private $request;
33
34 private $response;
35
36 public function __construct(HttpKernelInterface $kernel, Request $request, Response $response)
37 {
38 $this->kernel = $kernel;
39 $this->request = $request;
40 $this->response = $response;
41 }
42
43 /**
44 * Returns the kernel in which this event was thrown.
45 *
46 * @return HttpKernelInterface
47 */
48 public function getKernel()
49 {
50 return $this->kernel;
51 }
52
53 /**
54 * Returns the request for which this event was thrown.
55 *
56 * @return Request
57 */
58 public function getRequest()
59 {
60 return $this->request;
61 }
62
63 /**
64 * Returns the response for which this event was thrown.
65 *
66 * @return Response
67 */
68 public function getResponse()
69 {
70 return $this->response;
71 }
72 }
73