Skip to content

Commit 440d9ba

Browse files
committed
ContainerPanel: added link to source code
1 parent d84b62d commit 440d9ba

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Bridges/DITracy/ContainerPanel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function getPanel()
4949
{
5050
$container = $this->container;
5151
$registry = $this->getContainerProperty('registry');
52+
$rc = new \ReflectionClass($container);
53+
$file = $rc->getFileName();
5254
$tags = array();
5355
$meta = $this->getContainerProperty('meta');
5456
$services = $meta[Container::SERVICES];

src/Bridges/DITracy/templates/ContainerPanel.panel.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Nette\Bridges\DITracy;
44

55
use Nette,
6+
Tracy\Helpers,
67
Tracy\Dumper;
78

89
?>
@@ -69,5 +70,7 @@ use Nette,
6970
<div class="nette-ContainerPanel-parameters">
7071
<?php echo Dumper::toHtml($container->parameters); ?>
7172
</div>
73+
74+
<p>Source: <?php echo Helpers::editorLink($file) ?></p>
7275
</div>
7376
</div>

0 commit comments

Comments
 (0)