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

GetResponseEvent.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.39 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\HttpFoundation\Response;
 15   
 16  /**
 17   * Allows to create a response for a request
 18   *
 19   * Call setResponse() to set the response that will be returned for the
 20   * current request. The propagation of this event is stopped as soon as a
 21   * response is set.
 22   *
 23   * @author Bernhard Schussek <bschussek@gmail.com>
 24   *
 25   * @api
 26   */
 27  class GetResponseEvent extends KernelEvent
 28  {
 29      /**
 30       * The response object
 31       * @var Response
 32       */
 33      private $response;
 34   
 35      /**
 36       * Returns the response object
 37       *
 38       * @return Response
 39       *
 40       * @api
 41       */
 42      public function getResponse()
 43      {
 44          return $this->response;
 45      }
 46   
 47      /**
 48       * Sets a response and stops event propagation
 49       *
 50       * @param Response $response
 51       *
 52       * @api
 53       */
 54      public function setResponse(Response $response)
 55      {
 56          $this->response = $response;
 57   
 58          $this->stopPropagation();
 59      }
 60   
 61      /**
 62       * Returns whether a response was set
 63       *
 64       * @return bool    Whether a response was set
 65       *
 66       * @api
 67       */
 68      public function hasResponse()
 69      {
 70          return null !== $this->response;
 71      }
 72  }
 73