public function __construct() { parent::__construct(); Event::add('profiler.run', array($this, 'doctrine')); $manager = Doctrine_Manager::getInstance(); $conn = $manager->getCurrentConnection(); $profiler = new Doctrine_Connection_Profiler(); $conn->setListener($profiler); $this->profiler = $profiler; }
public static function enable() { Event::add('profiler.run', array('Profiler', 'cache')); parent::enable(); }