Skip to content

Commit

Permalink
ContainerPanel: added link to source code
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 24, 2015
1 parent d84b62d commit e568ad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Bridges/DITracy/ContainerPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function getPanel()
{
$container = $this->container;
$registry = $this->getContainerProperty('registry');
$reflection = new \ReflectionClass($container);
$tags = array();
$meta = $this->getContainerProperty('meta');
$services = $meta[Container::SERVICES];
Expand Down
3 changes: 3 additions & 0 deletions src/Bridges/DITracy/templates/ContainerPanel.panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Nette\Bridges\DITracy;

use Nette,
Tracy\Helpers,
Tracy\Dumper;

?>
Expand Down Expand Up @@ -69,5 +70,7 @@ use Nette,
<div class="nette-ContainerPanel-parameters">
<?php echo Dumper::toHtml($container->parameters); ?>
</div>

<p>Source: <?php echo Helpers::editorLink($reflection->getFileName(), $reflection->getStartLine()) ?></p>
</div>
</div>

0 comments on commit e568ad9

Please sign in to comment.