Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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

FilterControllerEvent.php

Zuletzt modifiziert: 01.05.2026, 11:26 - Dateigröße: 1.27 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\Request;
 15  use Symfony\Component\HttpKernel\HttpKernelInterface;
 16   
 17  /**
 18   * Allows filtering of a controller callable.
 19   *
 20   * You can call getController() to retrieve the current controller. With
 21   * setController() you can set a new controller that is used in the processing
 22   * of the request.
 23   *
 24   * Controllers should be callables.
 25   *
 26   * @author Bernhard Schussek <bschussek@gmail.com>
 27   */
 28  class FilterControllerEvent extends KernelEvent
 29  {
 30      private $controller;
 31   
 32      public function __construct(HttpKernelInterface $kernel, callable $controller, Request $request, $requestType)
 33      {
 34          parent::__construct($kernel, $request, $requestType);
 35   
 36          $this->setController($controller);
 37      }
 38   
 39      /**
 40       * Returns the current controller.
 41       *
 42       * @return callable
 43       */
 44      public function getController()
 45      {
 46          return $this->controller;
 47      }
 48   
 49      public function setController(callable $controller)
 50      {
 51          $this->controller = $controller;
 52      }
 53  }
 54