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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

KernelEvent.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.94 KiB


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  use Symfony\Component\EventDispatcher\Event;
17   
18  /**
19   * Base class for events thrown in the HttpKernel component
20   *
21   * @author Bernhard Schussek <bschussek@gmail.com>
22   *
23   * @api
24   */
25  class KernelEvent extends Event
26  {
27      /**
28       * The kernel in which this event was thrown
29       * @var HttpKernelInterface
30       */
31      private $kernel;
32   
33      /**
34       * The request the kernel is currently processing
35       * @var Request
36       */
37      private $request;
38   
39      /**
40       * The request type the kernel is currently processing.  One of
41       * HttpKernelInterface::MASTER_REQUEST and HttpKernelInterface::SUB_REQUEST
42       * @var int
43       */
44      private $requestType;
45   
46      public function __construct(HttpKernelInterface $kernel, Request $request, $requestType)
47      {
48          $this->kernel = $kernel;
49          $this->request = $request;
50          $this->requestType = $requestType;
51      }
52   
53      /**
54       * Returns the kernel in which this event was thrown
55       *
56       * @return HttpKernelInterface
57       *
58       * @api
59       */
60      public function getKernel()
61      {
62          return $this->kernel;
63      }
64   
65      /**
66       * Returns the request the kernel is currently processing
67       *
68       * @return Request
69       *
70       * @api
71       */
72      public function getRequest()
73      {
74          return $this->request;
75      }
76   
77      /**
78       * Returns the request type the kernel is currently processing
79       *
80       * @return int      One of HttpKernelInterface::MASTER_REQUEST and
81       *                  HttpKernelInterface::SUB_REQUEST
82       *
83       * @api
84       */
85      public function getRequestType()
86      {
87          return $this->requestType;
88      }
89  }
90