Added more information to the Propel panel by using the Propel logger

This commit is contained in:
William DURAND 2011-04-08 01:16:09 +02:00
commit fe58d40a38
4 changed files with 118 additions and 3 deletions

View file

@ -27,6 +27,14 @@ class PropelBundle extends Bundle
\Propel::setConfiguration($this->container->get('propel.configuration'));
if ($this->container->getParameter('propel.logging')) {
$this
->container
->get('propel.configuration')
->setParameter('debugpdo.logging.details', array(
'time' => array('enabled' => true),
'mem' => array('enabled' => true),
));
\Propel::setLogger($this->container->get('propel.logger'));
}