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

ExceptionDataCollector.php

Zuletzt modifiziert: 01.05.2026, 11:26 - Dateigröße: 2.24 KiB


 001  <?php
 002   
 003  /*
 004   * This file is part of the Symfony package.
 005   *
 006   * (c) Fabien Potencier <fabien@symfony.com>
 007   *
 008   * For the full copyright and license information, please view the LICENSE
 009   * file that was distributed with this source code.
 010   */
 011   
 012  namespace Symfony\Component\HttpKernel\DataCollector;
 013   
 014  use Symfony\Component\Debug\Exception\FlattenException;
 015  use Symfony\Component\HttpFoundation\Request;
 016  use Symfony\Component\HttpFoundation\Response;
 017   
 018  /**
 019   * ExceptionDataCollector.
 020   *
 021   * @author Fabien Potencier <fabien@symfony.com>
 022   */
 023  class ExceptionDataCollector extends DataCollector
 024  {
 025      /**
 026       * {@inheritdoc}
 027       */
 028      public function collect(Request $request, Response $response, \Exception $exception = null)
 029      {
 030          if (null !== $exception) {
 031              $this->data = [
 032                  'exception' => FlattenException::create($exception),
 033              ];
 034          }
 035      }
 036   
 037      /**
 038       * {@inheritdoc}
 039       */
 040      public function reset()
 041      {
 042          $this->data = [];
 043      }
 044   
 045      /**
 046       * Checks if the exception is not null.
 047       *
 048       * @return bool true if the exception is not null, false otherwise
 049       */
 050      public function hasException()
 051      {
 052          return isset($this->data['exception']);
 053      }
 054   
 055      /**
 056       * Gets the exception.
 057       *
 058       * @return \Exception|FlattenException
 059       */
 060      public function getException()
 061      {
 062          return $this->data['exception'];
 063      }
 064   
 065      /**
 066       * Gets the exception message.
 067       *
 068       * @return string The exception message
 069       */
 070      public function getMessage()
 071      {
 072          return $this->data['exception']->getMessage();
 073      }
 074   
 075      /**
 076       * Gets the exception code.
 077       *
 078       * @return int The exception code
 079       */
 080      public function getCode()
 081      {
 082          return $this->data['exception']->getCode();
 083      }
 084   
 085      /**
 086       * Gets the status code.
 087       *
 088       * @return int The status code
 089       */
 090      public function getStatusCode()
 091      {
 092          return $this->data['exception']->getStatusCode();
 093      }
 094   
 095      /**
 096       * Gets the exception trace.
 097       *
 098       * @return array The exception trace
 099       */
 100      public function getTrace()
 101      {
 102          return $this->data['exception']->getTrace();
 103      }
 104   
 105      /**
 106       * {@inheritdoc}
 107       */
 108      public function getName()
 109      {
 110          return 'exception';
 111      }
 112  }
 113