Changeset View
Changeset View
Standalone View
Standalone View
src/view/widget/AphrontStackTraceView.php
<?php | <?php | ||||
final class AphrontStackTraceView extends AphrontView { | final class AphrontStackTraceView extends AphrontView { | ||||
private $trace; | private $trace; | ||||
public function setTrace($trace) { | public function setTrace($trace) { | ||||
$this->trace = $trace; | $this->trace = $trace; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function render() { | public function render() { | ||||
$user = $this->getUser(); | |||||
$trace = $this->trace; | $trace = $this->trace; | ||||
$libraries = PhutilBootloader::getInstance()->getAllLibraries(); | $libraries = PhutilBootloader::getInstance()->getAllLibraries(); | ||||
// TODO: Make this configurable? | // TODO: Make this configurable? | ||||
$path = 'https://secure.phabricator.com/diffusion/%s/browse/master/src/'; | $path = 'https://secure.phabricator.com/diffusion/%s/browse/master/src/'; | ||||
$callsigns = array( | $callsigns = array( | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |