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;
 }
Example #2
0
 public static function enable()
 {
     Event::add('profiler.run', array('Profiler', 'cache'));
     parent::enable();
 }