private function ExceptionHandler::formatPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ExceptionHandler.php \Symfony\Component\Debug\ExceptionHandler::formatPath()
1 call to ExceptionHandler::formatPath()
- ExceptionHandler::getContent in vendor/
symfony/ debug/ ExceptionHandler.php - Gets the HTML content associated with the given exception.
File
- vendor/
symfony/ debug/ ExceptionHandler.php, line 380
Class
- ExceptionHandler
- ExceptionHandler converts an exception to a Response object.
Namespace
Symfony\Component\DebugCode
private function formatPath($path, $line) {
$path = $this
->escapeHtml($path);
$file = preg_match('#[^/\\\\]*$#', $path, $file) ? $file[0] : $path;
if ($linkFormat = $this->fileLinkFormat) {
$link = strtr($this
->escapeHtml($linkFormat), array(
'%f' => $path,
'%l' => (int) $line,
));
return sprintf(' in <a href="%s" title="Go to source">%s line %d</a>', $link, $file, $line);
}
return sprintf(' in <a title="%s line %3$d" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">%s line %d</a>', $path, $file, $line);
}