File tree Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Expand file tree Collapse file tree 1 file changed +22
-9
lines changed Original file line number Diff line number Diff line change 1- Git Version Panel
2- ======================
1+ # Git Version Panel
32
43Panel for Tracy debug panel.
54Shows current branch and current revision hash to be able identify your deployed version on sight.
@@ -8,22 +7,36 @@ Inspired by https://gist.github.com/vvondra/3645108.
87
98![ ] ( http://oi59.tinypic.com/34oviv9.jpg )
109
11- Installing
12- ----------
10+ ## Installing
1311
1412Install library via composer:
1513
1614```
1715composer require jandrabek/tracy-gitversion-panel
1816```
1917
20- Register panel
18+
19+ ## Registerring...
20+
21+ ### In older versions of Nette (< 2.2)
2122
2223```
2324nette:
2425 debugger:
25- bar: [JanDrabek\Tracy\GitVersionPanel]
26- # Or when you register multiple extensions
27- # bar:
28- # - JanDrabek\Tracy\GitVersionPanel
26+ bar:
27+ - JanDrabek\Tracy\GitVersionPanel
28+ ```
29+
30+ ### In newer versions of Nette (>= 2.2)
31+
32+ ```
33+ tracy:
34+ bar:
35+ - JanDrabek\Tracy\GitVersionPanel
36+ ```
37+
38+ ### In pure Tracy
39+
2940```
41+ Tracy\Debugger::getBar()->addPanel(new JanDrabek\Tracy\GitVersionPanel());
42+ ```
You can’t perform that action at this time.
0 commit comments