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

Breadcrumb

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

function CliDumper::__construct

Overrides AbstractDumper::__construct

1 method overrides CliDumper::__construct()
HtmlDumper::__construct in vendor/symfony/var-dumper/Dumper/HtmlDumper.php

File

vendor/symfony/var-dumper/Dumper/CliDumper.php, line 68

Class

CliDumper
CliDumper dumps variables for command line output.

Namespace

Symfony\Component\VarDumper\Dumper

Code

public function __construct($output = null, ?string $charset = null, int $flags = 0) {
    parent::__construct($output, $charset, $flags);
    if ('\\' === \DIRECTORY_SEPARATOR && !$this->isWindowsTrueColor()) {
        // Use only the base 16 xterm colors when using ANSICON or standard Windows 10 CLI
        $this->setStyles([
            'default' => '31',
            'num' => '1;34',
            'const' => '1;31',
            'str' => '1;32',
            'note' => '34',
            'ref' => '1;30',
            'meta' => '35',
            'key' => '32',
            'index' => '34',
        ]);
    }
    $this->displayOptions['fileLinkFormat'] = class_exists(FileLinkFormatter::class) ? new FileLinkFormatter() : ((\ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format')) ?: 'file://%f#L%l');
}
RSS feed
Powered by Drupal