Skip to content

Instantly share code, notes, and snippets.

@jsifalda
Created May 17, 2014 18:14
Show Gist options
  • Save jsifalda/8e83323136620e1a0886 to your computer and use it in GitHub Desktop.
Save jsifalda/8e83323136620e1a0886 to your computer and use it in GitHub Desktop.
<?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