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

FilterResponseEvent.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.44 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\HttpFoundation\Response;
 17   
 18  /**
 19   * Allows to filter a Response object
 20   *
 21   * You can call getResponse() to retrieve the current response. With
 22   * setResponse() you can set a new response that will be returned to the
 23   * browser.
 24   *
 25   * @author Bernhard Schussek <bschussek@gmail.com>
 26   *
 27   * @api
 28   */
 29  class FilterResponseEvent extends KernelEvent
 30  {
 31      /**
 32       * The current response object
 33       * @var Response
 34       */
 35      private $response;
 36   
 37      public function __construct(HttpKernelInterface $kernel, Request $request, $requestType, Response $response)
 38      {
 39          parent::__construct($kernel, $request, $requestType);
 40   
 41          $this->setResponse($response);
 42      }
 43   
 44      /**
 45       * Returns the current response object
 46       *
 47       * @return Response
 48       *
 49       * @api
 50       */
 51      public function getResponse()
 52      {
 53          return $this->response;
 54      }
 55   
 56      /**
 57       * Sets a new response object
 58       *
 59       * @param Response $response
 60       *
 61       * @api
 62       */
 63      public function setResponse(Response $response)
 64      {
 65          $this->response = $response;
 66      }
 67  }
 68