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 440d9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Bridges/DITracy/ContainerPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function getPanel()
{
$container = $this->container;
$registry = $this->getContainerProperty('registry');
$rc = new \ReflectionClass($container);
$file = $rc->getFileName();
$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($file) ?></p>
</div>
</div>

0 comments on commit 440d9ba

Please sign in to comment.