fix usage of ProfilerConnectionWrapper

This commit is contained in:
Manuel Raynaud
2013-09-30 15:35:46 +02:00
parent f25922c60a
commit fc0cac2cb9
4 changed files with 6 additions and 16 deletions

View File

@@ -47,10 +47,9 @@ class PropelCollector extends DataCollector implements Renderable, LoggerInterfa
public function __construct(LoggerInterface $alternativeLogger = null)
{
$serviceContainer = Propel::getServiceContainer();
$serviceContainer->setLogger('defaultLogger', $this);
$con = Propel::getServiceContainer()->getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
$con->setLogger($this);
$con = Propel::getConnection(\Thelia\Model\Map\ProductTableMap::DATABASE_NAME);
$con->setLogMethods(array(
'exec',
'query',