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 |
GetResponseForControllerResultEvent.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\HttpFoundation\Request;
16
17 /**
18 * Allows to create a response for the return value of a controller
19 *
20 * Call setResponse() to set the response that will be returned for the
21 * current request. The propagation of this event is stopped as soon as a
22 * response is set.
23 *
24 * @author Bernhard Schussek <bschussek@gmail.com>
25 *
26 * @api
27 */
28 class GetResponseForControllerResultEvent extends GetResponseEvent
29 {
30 /**
31 * The return value of the controller
32 *
33 * @var mixed
34 */
35 private $controllerResult;
36
37 public function __construct(HttpKernelInterface $kernel, Request $request, $requestType, $controllerResult)
38 {
39 parent::__construct($kernel, $request, $requestType);
40
41 $this->controllerResult = $controllerResult;
42 }
43
44 /**
45 * Returns the return value of the controller.
46 *
47 * @return mixed The controller return value
48 *
49 * @api
50 */
51 public function getControllerResult()
52 {
53 return $this->controllerResult;
54 }
55
56 /**
57 * Assigns the return value of the controller.
58 *
59 * @param mixed $controllerResult The controller return value
60 *
61 * @api
62 */
63 public function setControllerResult($controllerResult)
64 {
65 $this->controllerResult = $controllerResult;
66 }
67 }
68