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\DataCollectorCode
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;
}