/** * Register the debug database that captures the queries. * * This event happens as early as possible so that all queries can be captured. * * @param Gdn_PluginManager $sender The {@link Gdn_PluginManager} firing the event. */ public function gdn_pluginManager_afterStart_handler($sender) { $tmp = Gdn::factoryOverwrite(true); Gdn::factoryInstall(Gdn::AliasDatabase, 'Gdn_DatabaseDebug', dirname(__FILE__) . DS . 'class.databasedebug.php', Gdn::FactorySingleton, array('Database')); Gdn::factoryOverwrite($tmp); unset($tmp); }