Created
May 17, 2014 18:14
-
-
Save jsifalda/8e83323136620e1a0886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BarPanel implements \Tracy\IBarPanel | |
{ | |
/** | |
* Renders HTML code for custom tab. | |
* | |
* @return string | |
*/ | |
function getTab() | |
{ | |
return '<div>html</div>'; | |
} | |
/** | |
* Renders HTML code for custom panel. | |
* | |
* @return string | |
*/ | |
function getPanel() | |
{ | |
return '<div>html</div>'; | |
} | |
} | |
class TracyBarProviderExtension extends \Nette\DI\CompilerExtension implements \Flame\Modules\Providers\ITracyBarPanelsProvider | |
{ | |
/** | |
* Returns array of classes or services that will be configured to bar panels | |
* | |
* @see http://doc.nette.org/en/2.1/configuring#toc-debugger | |
* @return array | |
*/ | |
function getTracyBarPanels() | |
{ | |
return array( | |
'BarPanel' | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment