private function DumpDataCollector::doDump in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/DataCollector/DumpDataCollector.php \Symfony\Component\HttpKernel\DataCollector\DumpDataCollector::doDump()
3 calls to DumpDataCollector::doDump()
- DumpDataCollector::collect in vendor/
symfony/ http-kernel/ DataCollector/ DumpDataCollector.php - Collects data for the given Request and Response.
- DumpDataCollector::dump in vendor/
symfony/ http-kernel/ DataCollector/ DumpDataCollector.php - DumpDataCollector::__destruct in vendor/
symfony/ http-kernel/ DataCollector/ DumpDataCollector.php
File
- vendor/
symfony/ http-kernel/ DataCollector/ DumpDataCollector.php, line 258
Class
- DumpDataCollector
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\HttpKernel\DataCollectorCode
private function doDump($data, $name, $file, $line) {
if (PHP_VERSION_ID >= 50400 && $this->dumper instanceof CliDumper) {
$contextDumper = function ($name, $file, $line, $fileLinkFormat) {
if ($this instanceof HtmlDumper) {
if ('' !== $file) {
$s = $this
->style('meta', '%s');
$name = strip_tags($this
->style('', $name));
$file = strip_tags($this
->style('', $file));
if ($fileLinkFormat) {
$link = strtr(strip_tags($this
->style('', $fileLinkFormat)), array(
'%f' => $file,
'%l' => (int) $line,
));
$name = sprintf('<a href="%s" title="%s">' . $s . '</a>', $link, $file, $name);
}
else {
$name = sprintf('<abbr title="%s">' . $s . '</abbr>', $file, $name);
}
}
else {
$name = $this
->style('meta', $name);
}
$this->line = $name . ' on line ' . $this
->style('meta', $line) . ':';
}
else {
$this->line = $this
->style('meta', $name) . ' on line ' . $this
->style('meta', $line) . ':';
}
$this
->dumpLine(0);
};
$contextDumper = $contextDumper
->bindTo($this->dumper, $this->dumper);
$contextDumper($name, $file, $line, $this->fileLinkFormat);
}
else {
$cloner = new VarCloner();
$this->dumper
->dump($cloner
->cloneVar($name . ' on line ' . $line . ':'));
}
$this->dumper
->dump($data);
}