Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
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\HttpFoundation\Request;
15 use Symfony\Component\HttpKernel\HttpKernelInterface;
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 class GetResponseForControllerResultEvent extends GetResponseEvent
27 {
28 /**
29 * The return value of the controller.
30 *
31 * @var mixed
32 */
33 private $controllerResult;
34
35 public function __construct(HttpKernelInterface $kernel, Request $request, $requestType, $controllerResult)
36 {
37 parent::__construct($kernel, $request, $requestType);
38
39 $this->controllerResult = $controllerResult;
40 }
41
42 /**
43 * Returns the return value of the controller.
44 *
45 * @return mixed The controller return value
46 */
47 public function getControllerResult()
48 {
49 return $this->controllerResult;
50 }
51
52 /**
53 * Assigns the return value of the controller.
54 *
55 * @param mixed $controllerResult The controller return value
56 */
57 public function setControllerResult($controllerResult)
58 {
59 $this->controllerResult = $controllerResult;
60 }
61 }
62