Changeset 11205
- Timestamp:
- 08/27/08 18:24:17 (10 months ago)
- Files:
-
- branches/1.2/lib/debug/sfWebDebug.class.php (modified) (1 diff)
- plugins/sfPropelPlugin/trunk/config/config.php (modified) (1 diff)
- plugins/sfPropelPlugin/trunk/lib/propel/debug (added)
- plugins/sfPropelPlugin/trunk/lib/propel/debug/sfWebDebugPanelPropel.class.php (moved) (moved from branches/1.2/lib/debug/sfWebDebugPanelPropel.class.php) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/debug/sfWebDebug.class.php
r11164 r11205 67 67 } 68 68 $this->setPanel('logs', new sfWebDebugPanelLogs($this)); 69 $this->setPanel('db', new sfWebDebugPanelPropel($this));70 69 $this->setPanel('memory', new sfWebDebugPanelMemory($this)); 71 70 if (sfConfig::get('sf_debug')) plugins/sfPropelPlugin/trunk/config/config.php
r10053 r11205 2 2 3 3 set_include_path(sfConfig::get('sf_root_dir').PATH_SEPARATOR.sfConfig::get('sf_symfony_lib_dir').PATH_SEPARATOR.realpath(dirname(__FILE__).'/../lib/vendor/').'/'.PATH_SEPARATOR.get_include_path()); 4 5 if (sfConfig::get('sf_web_debug')) 6 { 7 require_once dirname(__FILE__).'/../lib/propel/debug/sfWebDebugPanelPropel.class.php'; 8 9 $this->dispatcher->connect('debug.web.load_panels', array('sfWebDebugPanelPropel', 'listenToAddPanelEvent')); 10 } plugins/sfPropelPlugin/trunk/lib/propel/debug/sfWebDebugPanelPropel.class.php
r11164 r11205 3 3 /* 4 4 * This file is part of the symfony package. 5 * (c) 2004-2006Fabien Potencier <fabien.potencier@symfony-project.com>5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 6 6 * 7 7 * For the full copyright and license information, please view the LICENSE … … 67 67 } 68 68 69 static public function listenToAddPanelEvent(sfEvent $event) 70 { 71 $event->getSubject()->setPanel('db', new self($event->getSubject())); 72 } 73 69 74 protected function getSqlLogs() 70 75 {

