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

Breadcrumb

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

function LoggerDataCollector::lateCollect

Overrides LateDataCollectorInterface::lateCollect

File

vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php, line 46

Class

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

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function lateCollect() : void {
    if ($this->logger) {
        $containerDeprecationLogs = $this->getContainerDeprecationLogs();
        $this->data = $this->computeErrorsCount($containerDeprecationLogs);
        // get compiler logs later (only when they are needed) to improve performance
        $this->data['compiler_logs'] = [];
        $this->data['compiler_logs_filepath'] = $this->containerPathPrefix . 'Compiler.log';
        $this->data['logs'] = $this->sanitizeLogs(array_merge($this->logger
            ->getLogs($this->currentRequest), $containerDeprecationLogs));
        $this->data = $this->cloneVar($this->data);
    }
    $this->currentRequest = null;
}
RSS feed
Powered by Drupal