Development

Changeset 11205

You must first sign up to be able to contribute.

Changeset 11205

Show
Ignore:
Timestamp:
08/27/08 18:24:17 (10 months ago)
Author:
fabien
Message:

[1.2] moved Propel web debug panel to the Propel plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/debug/sfWebDebug.class.php

    r11164 r11205  
    6767    } 
    6868    $this->setPanel('logs', new sfWebDebugPanelLogs($this)); 
    69     $this->setPanel('db', new sfWebDebugPanelPropel($this)); 
    7069    $this->setPanel('memory', new sfWebDebugPanelMemory($this)); 
    7170    if (sfConfig::get('sf_debug')) 
  • plugins/sfPropelPlugin/trunk/config/config.php

    r10053 r11205  
    22 
    33set_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 
     5if (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  
    33/* 
    44 * This file is part of the symfony package. 
    5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
     5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com> 
    66 * 
    77 * For the full copyright and license information, please view the LICENSE 
     
    6767  } 
    6868 
     69  static public function listenToAddPanelEvent(sfEvent $event) 
     70  { 
     71    $event->getSubject()->setPanel('db', new self($event->getSubject())); 
     72  } 
     73 
    6974  protected function getSqlLogs() 
    7075  { 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.