Skip to content

Commit

Permalink
Add Xdebug Link functionality (barryvdh#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk authored and barryvdh committed Dec 24, 2017
1 parent e2cbcbf commit 3625487
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/DataCollector/ViewCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,18 @@ public function addView(View $view)
$params = $data;
}

$this->templates[] = [
$template = [
'name' => $path ? sprintf('%s (%s)', $name, $path) : $name,
'param_count' => count($params),
'params' => $params,
'type' => $type,
];

if ( $this->getXdebugLink($path)) {
$template['xdebug_link'] = $this->getXdebugLink($path);
}

$this->templates[] = $template;
}

public function collect()
Expand Down

0 comments on commit 3625487

Please sign in to comment.