Skip to content

Instantly share code, notes, and snippets.

@Majkl578
Created September 1, 2012 19:38
Show Gist options
  • Select an option

  • Save Majkl578/3584811 to your computer and use it in GitHub Desktop.

Select an option

Save Majkl578/3584811 to your computer and use it in GitHub Desktop.
Nella ConnectionPanel registration (in DI extension)
// connection/query panel
$builder->addDefinition($this->prefix('panel'))
->setClass('Nella\NetteAddons\Doctrine\Diagnostics\ConnectionPanel')
->addSetup('setConnection')
->addSetup('Nette\Diagnostics\Debugger::$bar->addPanel(?)', array('@self'))
->addSetup('Nette\Diagnostics\Debugger::$blueScreen->addPanel(?)', array(array('@self', 'renderException')))
->addSetup(array('@Doctrine\ORM\Configuration', 'setSQLLogger'))
->addTag('run');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment