maximebf / php-debugbar

Debug bar for PHP
phpdebugbar.com
MIT License
4.19k stars 400 forks source link

Propel 2 supported? #59

Open dhardtke opened 10 years ago

dhardtke commented 10 years ago

Hey guys,

thanks for the DebugBar - unfortunately it seems that it doesn't supported Propel 2 (the new major version of Propel).

Is support for it coming anytime soon?

Thanks.

maximebf commented 10 years ago

there is no immediate plan to support propel 2. I added support for propel 1 after a client's request but I'm not using it myself. I will have a look if it's easy to support the new version but I encourage you to contribute a Propel2Collector if you have time.

hexxykicchi commented 9 years ago

@dhardtke, If you need to support Propel 2 in your project, you sorta could, if you grab propel's underlying PDO connection and use debugbar's PDO data collector:

$serviceContainer = \Propel\Runtime\Propel::getServiceContainer(); $connection = $serviceContainer->getWriteConnection("loyasys"); $pdo = new DebugBar\DataCollector\PDO\TraceablePDO($connection->getWrappedConnection()); $debugbar->addCollector(new DebugBar\DataCollector\PDO\PDOCollector($pdo));

I haven't seen the propel datacollector in action so I don't know if it's any different, but this does the job for me.