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

Breadcrumb

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

function DebugLoggerConfigurator::__construct

File

vendor/symfony/http-kernel/Log/DebugLoggerConfigurator.php, line 23

Class

DebugLoggerConfigurator
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\HttpKernel\Log

Code

public function __construct(callable $processor, ?bool $enable = null) {
    if ($enable ?? !\in_array(\PHP_SAPI, [
        'cli',
        'phpdbg',
        'embed',
    ], true)) {
        $this->processor = \is_object($processor) ? $processor : $processor(...);
    }
}

API Navigation

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