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\DumperCode
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');
}