Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExceptionDataCollector.php

function ExceptionDataCollector::collect

Overrides DataCollectorInterface::collect

File

vendor/symfony/http-kernel/DataCollector/ExceptionDataCollector.php, line 25

Class

ExceptionDataCollector
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function collect(Request $request, Response $response, ?\Throwable $exception = null) : void {
    if (null !== $exception) {
        $this->data = [
            'exception' => FlattenException::createWithDataRepresentation($exception),
        ];
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal